ToolBar.CheckBoxStyleKey Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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}"/>