Version

XamMenu Class

Displays a menu in a WPF application.
Syntax
'Declaration
 
Public Class XamMenu 
   Inherits XamMenuBase
   Implements Infragistics.IProvidePropertyPersistenceSettings 
public class XamMenu : XamMenuBase, Infragistics.IProvidePropertyPersistenceSettings  
Remarks

The XamMenu control is used to display a menu in a WPF application. The XamMenu control supports the following features:

  • Data binding that allows the control's menu items to be bound to hierarchal data sources.
  • Programmatic access to the XamMenu object model to dynamically create menus, populate menu items, set properties, and so on.
  • Customizable appearance through styles, and user-defined templates.

XamMenu is a ItemsControl. Its content properties are Items and ItemsSource. You can read more information about ItemsControl in WPF help documentation.

The XamMenu control presents a list of items that specify commands or options for a WPF application. Typically, clicking an item on a menu opens a submenu or causes an application to carry out a command.

An item in a menu can be anything that can be added to an ItemCollection. The XamMenuItem is the most common type of item in a XamMenu. A XamMenuItem can contain child items. The child items will appear in a submenu when the user chooses a parent XamMenuItem.

You can change the menu orientation by MenuOrientation property to either horizontal or vertical. Also you can change how the menu opens its submenus by ExpandOnHover property.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also