Defining Layouts
Designing Look and Feel
Navigating and Selecting
   
Hierarchical Data Binding

You can bind the WPF menu control to your hierarchical data and specify submenu styling using the control's HierarchicalItemTemplate property to specify a set of hierarchical data templates.  Each hierarchical data template is responsible for doing two things:

  • They use an ItemTemplate that you specify that describes the "visual tree" governing the appearance of a menu item at the parent level.
  • Then they data bind to the parent item's children based on an ItemsSource you provide.

Successive levels of children will have their own hierarchical data template that can modify the ItemTemplate giving different styling to each level of submenus.

Menu Separators

Create certain menu items as XamMenuSeparator instances so they appear as separator lines between other menu items.

Orientation

You can have the WPF menu lay itself out either vertically or horizontally by setting its MenuOrientation property.