ToolBar.TextBoxStyleKey プロパティ

定義

Style のテキスト ボックスに適用される ToolBar を取得します。

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

プロパティ値

ツール バーのテキスト ボックスの既定のスタイルを表すリソース キー。

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

<Style x:Key="{x:Static ToolBar.TextBoxStyleKey}" TargetType="TextBox">
  <Setter Property="Background" Value="DarkBlue"/>
  <Setter Property="Foreground" Value="White"/>
  <Setter Property="FontSize" Value="14"/>
  <Setter Property="FontStyle" Value="Italic"/>
  <Setter Property="HorizontalAlignment" Value="Center"/>
  <Setter Property="VerticalAlignment" Value="Center"/>
  <Setter Property="Width" Value="75"/>
</Style>

注釈

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

XAML 属性の使用方法

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

適用対象