ToolBar.RadioButtonStyleKey プロパティ

定義

ツール バーのオプション ボタンに適用される Style を取得します。

public:
 static property System::Windows::ResourceKey ^ RadioButtonStyleKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey RadioButtonStyleKey { get; }
static member RadioButtonStyleKey : System.Windows.ResourceKey
Public Shared ReadOnly Property RadioButtonStyleKey As ResourceKey

プロパティ値

ツール バーのオプション ボタンの既定のスタイルを表すリソース キー。

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

<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"/>
</Style>

注釈

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

XAML 属性の使用方法

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

適用対象