I created a splitbutton with menuitems as a collection. How to associate an event with a menu item in a split button? because nothing happens when I click on the selected menu item. I tried adding this .
namespace Views
{
public partial class Views : Views.Paneles.ViewBase
{
public View()
{
InitializeComponent();
this.splitButton1.ItemClicked += splitButton1_ItemClicked;
}
private void splitButton1_ItemClicked(object sender, MenuButtonItemClickedEventArgs e)
{
AlertBox.Show(“SplitButton Item”);
}
}
}
You are using LinkMenuItem instead of MenuItem without an HRef. LinkMenuItems create navigation links. Use the default MenuItems and it will work fine.
You are using LinkMenuItem instead of MenuItem without an HRef. LinkMenuItems create navigation links. Use the default MenuItems and it will work fine.
Hi,
this is my sample, where it does not work when I click on a splitbutton item.
Hi,
can you please create a complete test case so we can inspect that issue.
With your details we could not yet reproduce it.
Thanks in advance.
Best regards
Frank
Please login first to submit.