ToolBar.TextBoxStyleKey Propiedad

Definición

Obtiene los Style cuadros de texto aplicados a un ToolBarobjeto .

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

Valor de propiedad

Clave de recurso que representa el estilo predeterminado para los cuadros de texto de la barra de herramientas.

Ejemplos

En el ejemplo siguiente se usa esta propiedad para crear un Style para TextBox los controles en un ToolBar.

<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>

Comentarios

Use esta propiedad para cambiar el estilo predeterminado de los controles en TextBox .ToolBar

Uso de atributos XAML

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

Se aplica a