ToolBar.RadioButtonStyleKey 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在工具列上會被 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
屬性值
一個資源鍵,代表工具列上預設的單選按鈕樣式。
範例
以下範例利用此特性將 a Style 應用於 RadioButton 控制點 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>
備註
使用此屬性來更改 RadioButtonToolBar.
XAML 屬性使用方式
<
objectproperty=“{ToolBar.RadioButtonStyleKey}"/>