Ribbon.ApplicationMenu Property
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
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.
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 >
You use the ApplicationMenu property to associate a RibbonApplicationMenu object with the Ribbon.
Item | Value |
---|---|
Identifier field | ApplicationMenuProperty |
Metadata properties set to true |
None |
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 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: