RadioButtonStyleKey Property

ToolBar.RadioButtonStyleKey Property


Gets the Style applied to radio buttons on a toolbar.

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

public static ResourceKey RadioButtonStyleKey { get; }

Property Value

Type: System.Windows.ResourceKey

A resource key that represents the default style for radio buttons on the toolbar.

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

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

The following example uses this property to apply a Style to RadioButton controls on a ToolBar.

<Style x:Key="{x:Static ToolBar.RadioButtonStyleKey}" TargetType="RadioButton">
  <Setter Property="Background" Value="LightSteelBlue"/>
  <Setter Property="FontSize" Value="14"/>
  <Setter Property="HorizontalAlignment" Value="Center"/>
  <Setter Property="VerticalAlignment" Value="Center"/>

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft