InkCanvas.Background Propriété

Définition

Obtient ou définit un Brush. Le pinceau est utilisé pour remplir la zone de délimitation qui entoure 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é

Brush

Brush utilisé pour remplir la zone de délimitation qui entoure 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

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

S’applique à