ToolBar.ButtonStyleKey プロパティ

定義

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

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

プロパティ値

ResourceKey

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

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

<Style x:Key="{x:Static ToolBar.ButtonStyleKey}" TargetType="Button">
  <Setter Property="Foreground" Value="Blue"/>
  <Setter Property="FontSize" Value="14"/>
  <Setter Property="HorizontalAlignment" Value="Center"/>
  <Setter Property="VerticalAlignment" Value="Center"/>
</Style>

注釈

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

XAML 属性の使用方法

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

適用対象