Ribbon.ApplicationMenu Property

.NET Framework 4.6 and 4.5

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.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft