ToolBar.CheckBoxStyleKey プロパティ

定義

Style のチェック ボックスに適用される 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

プロパティ値

ToolBar のチェック ボックスの既定のスタイルを表すリソース キー。

次の例では、このプロパティを使用して、 のコントロールに ToolBarCheckBox適用Styleします。

<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>

注釈

このプロパティを使用して、 のコントロールの既定の CheckBox スタイルを ToolBar変更します。

XAML 属性の使用方法

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

適用対象