語言

ToolBar.CheckBoxStyleKey 屬性

定義

public:
 static property System::Windows::ResourceKey ^ CheckBoxStyleKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey CheckBoxStyleKey { get; }
static member CheckBoxStyleKey : System.Windows.ResourceKey
Public Shared ReadOnly Property CheckBoxStyleKey As ResourceKey

屬性值

一個資源鍵,代表勾選框 ToolBar的預設樣式。

範例

以下範例利用此特性將 a Style 應用於 CheckBox 控制點 ToolBar。

<Style x:Key="{x:Static ToolBar.CheckBoxStyleKey}" TargetType="CheckBox">
  <Setter Property="Foreground" Value="DarkSlateBlue"/>
  <Setter Property="FontSize" Value="14"/>
  <Setter Property="HorizontalAlignment" Value="Center"/>
  <Setter Property="VerticalAlignment" Value="Center"/>
</Style>

備註

使用此屬性來更改 CheckBoxToolBar.

XAML 屬性使用方式

< objectproperty=“{ToolBar.CheckBoxStyleKey}"/>

適用於