AccessText.Background Eigenschap

Definitie

Hiermee haalt u het Brush inhoudsgebied op of stelt u deze in.

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

Waarde van eigenschap

Het Brush inhoudsgebied wordt ingevuld. De standaardwaarde is null.

Voorbeelden

In het volgende voorbeeld ziet u hoe u eigenschappen instelt om het uiterlijk van de tekst in een AccessText besturingselement te wijzigen.

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

Opmerkingen

Informatie over afhankelijkheidseigenschappen

Item Waarde
Id-veld BackgroundProperty
Eigenschappen van metagegevens ingesteld op true AffectsRender

Van toepassing op

Zie ook