ToolBar.MenuStyleKey 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.
public:
static property System::Windows::ResourceKey ^ MenuStyleKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey MenuStyleKey { get; }
static member MenuStyleKey : System.Windows.ResourceKey
Public Shared ReadOnly Property MenuStyleKey As ResourceKey
Property Value
A resource key that represents the default style for menus on the toolbar.
Examples
The following example uses this property to apply a Style to Menu controls on a ToolBar.
<Style x:Key="{x:Static ToolBar.MenuStyleKey}" TargetType="Menu">
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontStyle" Value="Italic"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Background" Value="LightSteelBlue"/>
</Style>
Remarks
Use this property to change the default style of Menu controls on the ToolBar.
XAML Attribute Usage
<object property="{
ToolBar.MenuStyleKey}"/>
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.