James Nimmo asked 2018-03-07 23:26:59 UTC
I created a splitbutton with menuitems as a collection. When I click on the split part of the splitbutton I get a drop-down menu with the menuitems. How does one have the menuitem do something when one clicks on it? I tried adding this function.
private void splitButton1_ItemClicked(object sender, MenuButtonItemClickedEventArgs e)
{
MessageBox.Show("Hello");
}
Nothing happens when I click on the selected menu item. Am I missing something?
James Nimmo asked 2018-03-07 23:26:59 UTC
I created a splitbutton with menuitems as a collection. When I click on the split part of the splitbutton I get a drop-down menu with the menuitems. How does one have the menuitem do something when one clicks on it? I tried adding this function.
private void splitButton1_ItemClicked(object sender, MenuButtonItemClickedEventArgs e)
{
MessageBox.Show("Hello");
}
Nothing happens when I click on the selected menu item. Am I missing something?