Skip to content

How do you associate an event with a menuitem on a splitbutton? #1414

Description

@itg-assistant

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions