Ribbon.ApplicationMenu Property
.NET Framework 4.5
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets the RibbonApplicationMenu that is a logical child of this Ribbon control.
Namespace: System.Windows.Controls.Ribbon
Assembly: System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)
Property Value
Type: System.Windows.Controls.Ribbon.RibbonApplicationMenuThe ribbon Application Menu that is a logical child of this Ribbon control. The registered default is Nothing. For more information about what can influence the value, see Dependency Property Value Precedence.
You use the ApplicationMenu property to associate a RibbonApplicationMenu object with the Ribbon.
The following example shows a simple Application Menu attached to a ribbon control. For more examples, see RibbonApplicationMenu.
xmlns:ribbon="clr-namespace:System.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" ... <ribbon:Ribbon > <ribbon:Ribbon.ApplicationMenu> <ribbon:RibbonApplicationMenu SmallImageSource="Images\SmallIcon.png"> <ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon" x:Name="MenuItem1" ImageSource="Images\LargeIcon.png"/> </ribbon:RibbonApplicationMenu> </ribbon:Ribbon.ApplicationMenu> <ribbon:RibbonTab> <!-- Ribbon content goes here. --> </ribbon:RibbonTab> </ribbon:Ribbon >
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8 Consumer Preview, Windows Server 8 Beta, Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.