CheckBoxStyleKey Property

ToolBar.CheckBoxStyleKey Property

 

Gets the Style applied to check boxes on a ToolBar.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

static member CheckBoxStyleKey : ResourceKey with get

Property Value

Type: System.Windows.ResourceKey

A resource key that represents the default style for check boxes on the ToolBar.

Use this property to change the default style of CheckBox controls on the ToolBar.

<object property="{ ToolBar.CheckBoxStyleKey}"/>

The following example uses this property to apply a Style to CheckBox controls on a 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>

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft