Intersoft.Client.UI.Aqua.UXRibbon Namespace : UXRibbonApplicationBackstageMenuItem Class |
<TemplatePartAttribute(Name="KeyboardFocusElement", Type=System.Windows.Shapes.Rectangle)> <DescriptionAttribute("Represents an application backstage menu item.")> <StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonApplicationBackstageMenuItem)> <StyleTypedPropertyAttribute(Property="ToggleButtonStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXToggleButton)> <TemplatePartAttribute(Name="ItemContentPresenter", Type=System.Windows.Controls.ContentPresenter)> <TemplatePartAttribute(Name="HostItemContent", Type=System.Windows.Controls.ContentControl)> <TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)> <TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Aqua.UXToggleButton)> <TemplateVisualStateAttribute(Name="KeyboardFocused", GroupName="KeyboardFocusStates")> <TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")> Public Class UXRibbonApplicationBackstageMenuItem Inherits Intersoft.Client.Framework.ISHeaderedContentControl Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource, IRibbonKeyTipAction
Dim instance As UXRibbonApplicationBackstageMenuItem
[TemplatePartAttribute(Name="KeyboardFocusElement", Type=System.Windows.Shapes.Rectangle)] [DescriptionAttribute("Represents an application backstage menu item.")] [StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonApplicationBackstageMenuItem)] [StyleTypedPropertyAttribute(Property="ToggleButtonStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXToggleButton)] [TemplatePartAttribute(Name="ItemContentPresenter", Type=System.Windows.Controls.ContentPresenter)] [TemplatePartAttribute(Name="HostItemContent", Type=System.Windows.Controls.ContentControl)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Aqua.UXToggleButton)] [TemplateVisualStateAttribute(Name="KeyboardFocused", GroupName="KeyboardFocusStates")] [TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")] public class UXRibbonApplicationBackstageMenuItem : Intersoft.Client.Framework.ISHeaderedContentControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource, IRibbonKeyTipAction
[TemplatePartAttribute(Name="KeyboardFocusElement", Type=System.Windows.Shapes.Rectangle)] [DescriptionAttribute("Represents an application backstage menu item.")] [StyleTypedPropertyAttribute(Property="Style", StyleTargetType=Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonApplicationBackstageMenuItem)] [StyleTypedPropertyAttribute(Property="ToggleButtonStyle", StyleTargetType=Intersoft.Client.UI.Aqua.UXToggleButton)] [TemplatePartAttribute(Name="ItemContentPresenter", Type=System.Windows.Controls.ContentPresenter)] [TemplatePartAttribute(Name="HostItemContent", Type=System.Windows.Controls.ContentControl)] [TemplatePartAttribute(Name="RootElement", Type=System.Windows.Controls.Grid)] [TemplatePartAttribute(Name="HeaderElement", Type=Intersoft.Client.UI.Aqua.UXToggleButton)] [TemplateVisualStateAttribute(Name="KeyboardFocused", GroupName="KeyboardFocusStates")] [TemplateVisualStateAttribute(GroupName="KeyboardFocusStates", Name="KeyboardUnfocused")] public ref class UXRibbonApplicationBackstageMenuItem : public Intersoft.Client.Framework.ISHeaderedContentControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.Input.ICommandSource, IRibbonKeyTipAction
Application menu is a control 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 which behaves similar to 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.
To learn more about UXRibbonApplicationMenu, see Working with Ribbon Application Menu.
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
Intersoft.Client.Framework.ISContentControl
Intersoft.Client.Framework.ISHeaderedContentControl
Intersoft.Client.UI.Aqua.UXRibbon.UXRibbonApplicationBackstageMenuItem
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