Ghost1372

everything can be handy

Menu

Styles

Name
Menu.Small
MenuBaseStyle

Attached Property

Properties Description
AnimationMode Change Transition Animation Only Custom Version
IsEnabledAnimation Enable or Disable Transition Animation Only Custom Version
1
2
3
     <Menu hc:MenuAttach.AnimationMode="Fade"/>
<!--OR-->
<Menu hc:MenuAttach.IsEnabledAnimation="False"/>

MenuBaseStyle

The default style of the menu is not recommended. It should always be used by other styles in the manner of BasedOn.

example:

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

Menu.BaseStyle

0%