Ghost1372

everything can be handy

ContextMenu

Styles

Name
ContextMenu.Small

ContextMenuBaseStyle

The default style of the context menu is not recommended for direct use and should always be used by other styles in the BasedOn mode.

Example:

1
2
3
4
5
6
7
<ContextMenu ItemsSource="{Binding DataList}">
<ContextMenu.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding DataList}">
<TextBlock Text="{Binding Name}"/>
</HierarchicalDataTemplate>
</ContextMenu.ItemTemplate>
</ContextMenu>

ContextMenu

0%