Intersoft.Client.UI.Aqua.UXRibbon Namespace > UXRibbonBar Class : ApplicationMenu Property |
Public Property ApplicationMenu As UXRibbonApplicationMenu
Dim instance As UXRibbonBar Dim value As UXRibbonApplicationMenu instance.ApplicationMenu = value value = instance.ApplicationMenu
public UXRibbonApplicationMenu ApplicationMenu {get; set;}
public: property UXRibbonApplicationMenu^ ApplicationMenu { UXRibbonApplicationMenu^ get(); void set ( UXRibbonApplicationMenu^ value); }
Application menu is a menu that can be accessed from the top left corner of the ribbon, There are two types of item that you can define in UXRibbonApplicationMenu which are UXRibbonApplicationMenuItem and UXRibbonApplicationBackstageMenuItem.
UXRibbonApplicationMenuItem is a command control having similar behaviors with UXMenuItem. To learn more about UXMenuItem, see UXDropDownButton Overview. On the other hands, UXRibbonApplicationBackstageMenuItem is a more sophisticated control that displays custom content when the menu item is active.
The following code shows how to define three UXRibbonApplicationMenuItem and one UXRibbonApplicationBackstageMenuItem. Notice that the "Exit" menu item has a command assigned.
XAML |
Copy Code
|
---|---|
<Intersoft:UXRibbonBar> <Intersoft:UXRibbonBar.ApplicationMenu> <Intersoft:UXRibbonApplicationMenu Content="File"> <Intersoft:UXRibbonApplicationMenuItem Header="Save" /> <Intersoft:UXRibbonApplicationMenuItem Header="Save As" /> <Intersoft:UXRibbonApplicationBackstageMenuItem Header="Info"> <UserControl:MenuInfo /> </Intersoft:UXRibbonApplicationBackstageMenuItem> <Intersoft:UXRibbonApplicationMenuItem Header="Exit" Command="Intersoft:WindowCommands.Close" /> </Intersoft:UXRibbonApplicationMenu> </Intersoft:UXRibbonBar.ApplicationMenu> </Intersoft:UXRibbonBar> |
The following figure shows the application menu when a backstage menu item is active.
Target Platforms: Windows 7, 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