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?
Use the splitButton1.ItemClicked event. The args has the Item property.
Please login first to submit.