Condividi tramite


InkCanvas.Background Proprietà

Definizione

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

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 oggetto InkCanvas.

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

Commenti

Informazioni sulle proprietà di dipendenza

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

Si applica a