WindowsFormsHost.Background Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit l’arrière-plan du contrôle hébergé en tant que 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é
Valeur Brush définie 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 propriétés et Control.BackgroundImage les Control.BackColor propriétés du contrôle hébergé.
Pour plus d’informations sur le mappage de la Background propriété, consultez Windows Forms et WPF Property Mapping.
Utilisation des attributs XAML
<object Background="Brush"/>
Valeurs XAML
Brosse Consultez Brush la syntaxe d’attribut XAML.
Informations sur les propriétés de dépendance
| Élément | Valeur |
|---|---|
| Champ d’identificateur | BackgroundProperty |
Propriétés de métadonnées définies sur true |
AffectsRender, SubPropertiesDoNotAffectRender |