Export (0) Print
Expand All

Ribbon.ApplicationMenu Property

.NET Framework 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)

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 a null reference (Nothing in Visual Basic). 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.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), 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.

Show:
© 2014 Microsoft