WindowsFormsHost.Background Propriété

Définition

Obtient ou définit l’arrière-plan du contrôle hébergé comme une propriété ambiante.

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

Valeur de propriété

Brush défini sur la couleur d’arrière-plan.

Remarques

Cette propriété de dépendance est identifiée par le BackgroundProperty champ . Par défaut, cette propriété est mappée pour mettre à jour les Control.BackColor propriétés et Control.BackgroundImage du contrôle hébergé.

Pour plus d’informations sur le mappage de la Background propriété, consultez mappage de propriétés Windows Forms et WPF.

Utilisation d'attributs XAML

<object Background="Brush"/>

Valeurs XAML

Brosse Pour connaître la syntaxe de l’attribut XAML, consultez Brush .

Informations sur les propriétés de dépendance

Champ Identificateur BackgroundProperty
Propriétés de métadonnées définies sur true AffectsRender, SubPropertiesDoNotAffectRender

S’applique à

Voir aussi