ToolBar.MenuStyleKey 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
static property System::Windows::ResourceKey ^ MenuStyleKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey MenuStyleKey { get; }
member this.MenuStyleKey : System.Windows.ResourceKey
Public Shared ReadOnly Property MenuStyleKey As ResourceKey
属性值
一个资源键,它表示工具栏上的菜单的默认样式。
示例
以下示例使用此属性对控件ToolBar应用StyleMenu控件。
<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>
注解
XAML 属性用法
<object property=“{
ToolBar.MenuStyleKey}"/>