Ribbon.ApplicationMenu Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om