Partager via


InkCanvas.Background Propriété

Définition

Obtient ou définit un Brush. Le pinceau est utilisé pour remplir la zone de bordure entourant un InkCanvas.

public:
 property System::Windows::Media::Brush ^ Background { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Media.Brush Background { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Background : System.Windows.Media.Brush with get, set
Public Property Background As Brush

Valeur de propriété

Utilisé Brush pour remplir la zone de bordure entourant un InkCanvas.

Attributs

Exemples

L’exemple suivant montre comment définir la Background propriété sur un InkCanvas.

inkCanvas1.Background = Brushes.LightGreen;
inkCanvas1.Background = Brushes.LightGreen

Remarques

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

S’applique à