InkCanvas.Background Proprietà

Definizione

Ottiene o imposta un Brush. Il pennello è utilizzato per riempire l'area del bordo che circonda 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

Valore della proprietà

Brush

Oggetto Brush utilizzato per riempire l'area del bordo che circonda un oggetto InkCanvas.

Attributi

Esempio

Nell'esempio seguente viene illustrato come impostare la Background proprietà su un InkCanvasoggetto .

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

Commenti

Informazioni proprietà di dipendenza

Campo Identificatore BackgroundProperty
Proprietà dei metadati impostate su true AffectsRender, SubPropertiesDoNotAffectRender

Si applica a