Bagikan melalui


ToolBar.CheckBoxStyleKey Properti

Definisi

Mendapatkan Style diterapkan ke kotak centang pada ToolBar.

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

Nilai Properti

Kunci sumber daya yang mewakili gaya default untuk kotak centang pada ToolBar.

Contoh

Contoh berikut menggunakan properti ini untuk menerapkan Style ke kontrol CheckBox pada 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>

Keterangan

Gunakan properti ini untuk mengubah gaya default kontrol CheckBox pada ToolBar.

Penggunaan Atribut XAML

< propertiobjek="{ToolBar.CheckBoxStyleKey}"/>

Berlaku untuk