ToolBar.RadioButtonStyleKey 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得套用至工具列上選項按鈕的 Style。
public:
static property System::Windows::ResourceKey ^ RadioButtonStyleKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey RadioButtonStyleKey { get; }
member this.RadioButtonStyleKey : System.Windows.ResourceKey
Public Shared ReadOnly Property RadioButtonStyleKey As ResourceKey
屬性值
表示工具列上選項按鈕之預設樣式的資源索引鍵。
範例
下列範例會使用這個屬性將 套用 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>
備註
使用這個屬性來變更 上 ToolBar 控制項的預設樣式 RadioButton 。
XAML Attribute Usage
<object property=「 {
ToolBar.RadioButtonStyleKey}"/>