Ribbon.ApplicationMenu Property

.NET Framework (current version)
 

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)

member ApplicationMenu : RibbonApplicationMenu with get, set

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 null. 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.

Identifier field

ApplicationMenuProperty

Metadata properties set to true

None

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
Available since 4.5
Return to top
Show: