ערוך

שתף באמצעות


InkCanvas.Background Property

Definition

Gets or sets a Brush. The brush is used to fill the border area surrounding a 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

Property Value

A Brush used to fill the border area surrounding a InkCanvas.

Attributes

Examples

The following example demonstrates how to set the Background property on an InkCanvas.

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

Remarks

Dependency Property Information

Identifier field BackgroundProperty
Metadata properties set to true AffectsRender, SubPropertiesDoNotAffectRender

Applies to