Ribbon.ApplicationMenu Property

Definition

Gets or sets the RibbonApplicationMenu that is a logical child of this Ribbon control.

C#
public System.Windows.Controls.Ribbon.RibbonApplicationMenu ApplicationMenu { get; set; }

Property Value

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.

Examples

The following example shows a simple Application Menu attached to a ribbon control. For more examples, see RibbonApplicationMenu.

XAML
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 >

Remarks

You use the ApplicationMenu property to associate a RibbonApplicationMenu object with the Ribbon.

Dependency Property Information

Item Value
Identifier field ApplicationMenuProperty
Metadata properties set to true None

Applies to

Produkt Verzie
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10