InkCanvas.Background Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a Brush. The brush is used to fill the border area surrounding a InkCanvas.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

[BindableAttribute(true)]
public Brush Background { get; set; }

Property Value

Type: System.Windows.Media.Brush

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

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

inkCanvas1.Background = Brushes.LightGreen;

.NET Framework
Available since 3.0
Return to top
Show: