1 out of 1 rated this helpful - Rate this topic

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)
'Declaration
Public Property ApplicationMenu As RibbonApplicationMenu

Property Value

Type: System.Windows.Controls.Ribbon.RibbonApplicationMenu
The 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.

Identifier field

ApplicationMenuProperty

Metadata properties set to true

None

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 >

.NET Framework

Supported in: 4.5

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.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.