ContextMenu #
ContextMenu display a list of choices on a temporary surface, It can be included in the component that has the touch event.
Examples #
xml
<...
xmlns:icon="clr-namespace:IconPacks.IconKind;assembly=IconPacks.Material"
...>
<mdc:FAB IconData="{Static icon:Material.Settings}">
<mdc:FAB.ContextMenu>
<mdc:ContextMenu>
<mdc:MenuItem Text="item 1" />
<mdc:MenuItem Text="item 2" />
<mdc:MenuItem Text="item 3" />
</mdc:ContextMenu>
</mdc:FAB.ContextMenu>
</mdc:FAB>
Properties #
name | type | default |
---|---|---|
Items | ObservableCollection<MenuItem> | |
ItemsSource | IList | |
Result | object | |
BackgroundColor | Color | SurfaceContainerColor |
Shape | Shape | 4 |
Elevation | Elevation | Level2 |
Methods #
name | args |
---|---|
Close | result |
Events #
name | type |
---|---|
Closed | EventHandler<object> |