Create a selectable menu
Extend the ComboBox with added features like a non-editable header, an itemClicked event, and commands. Users can select items from the menu by click or by touch.
The Menu control also supports MVVM-style commanding, which requires no event handlers at all.
To use the Menu control with commands, set the Menu's command property to an object with two methods:
- canExecuteCommand: This method takes an argument that represents a parameter and returns a Boolean value indicating whether the command can be executed in the current application state.
- executeCommand: This method takes an argument that represents a parameter and executes the command.
The Menu control can be used as a simple value picker. It extends the ComboBox control, which allows you to bind variables to the control's selectedValue property as you would with a ComboBox.
Split Buttons allow users to select a value by clicking a primary button, or select from a list of mutually exclusive values displayed in a drop-down list.
Create context menus and bind them to different elements.