AccessText.Background Propiedad

Definición

Obtiene o establece el Brush objeto que rellena el área de contenido.

public:
 property System::Windows::Media::Brush ^ Background { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush Background { get; set; }
member this.Background : System.Windows.Media.Brush with get, set
Public Property Background As Brush

Valor de propiedad

Brush que rellena el área de contenido. El valor predeterminado es null.

Ejemplos

En el ejemplo siguiente se muestra cómo establecer propiedades para cambiar la apariencia del texto en un AccessText control.

<TextBox Name="textBox2" Width="50" Height="30"/>
<Label Target="{Binding ElementName=textBox2}">
  <AccessText Background="Red" Foreground="DarkSlateBlue"    
              FontFamily="Arial Narrow" FontSize="16" FontStyle="Italic" 
              FontWeight="Bold">
    E_dit
  </AccessText>
</Label>

Comentarios

Información de la propiedad dependency

Elemento Value
Campo identificador BackgroundProperty
Propiedades de metadatos establecidas en true AffectsRender

Se aplica a

Consulte también