Skip to content
On this page

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

nametypedefault
ItemsObservableCollection<MenuItem>
ItemsSourceIList
Resultobject
BackgroundColorColorSurfaceContainerColor
ShapeShape4
ElevationElevationLevel2

Methods

nameargs
Closeresult

Events

nametype
ClosedEventHandler<object>