AccessText.Background Propriedade

Definição

Obtém ou define o Brush que preenche a área de conteúdo.

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 Propriedade

Isso Brush preenche a área de conteúdo. A predefinição é null.

Exemplos

O exemplo seguinte mostra como definir propriedades para alterar a aparência do texto num AccessText controlo.

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

Observações

Informação de Propriedade de Dependência

Iteme Value
Campo identificador BackgroundProperty
Propriedades dos metadados definidas como true AffectsRender

Aplica-se a

Ver também