Ribbon.ApplicationMenu Property

Definition

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

public:
 property System::Windows::Controls::Ribbon::RibbonApplicationMenu ^ ApplicationMenu { System::Windows::Controls::Ribbon::RibbonApplicationMenu ^ get(); void set(System::Windows::Controls::Ribbon::RibbonApplicationMenu ^ value); };
public System.Windows.Controls.Ribbon.RibbonApplicationMenu ApplicationMenu { get; set; }
member this.ApplicationMenu : System.Windows.Controls.Ribbon.RibbonApplicationMenu with get, set
Public Property ApplicationMenu As RibbonApplicationMenu

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.

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

Identifier field ApplicationMenuProperty
Metadata properties set to true None

Applies to