Bagikan melalui


ToolBar.RadioButtonStyleKey Properti

Definisi

Mendapatkan Style diterapkan ke tombol radio pada bilah alat.

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

Nilai Properti

Kunci sumber daya yang mewakili gaya default untuk tombol radio pada toolbar.

Contoh

Contoh berikut menggunakan properti ini untuk menerapkan Style ke kontrol RadioButton pada 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"/>
</Style>

Keterangan

Gunakan properti ini untuk mengubah gaya default kontrol RadioButton pada ToolBar.

Penggunaan Atribut XAML

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

Berlaku untuk