Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InkCanvas.Background Property

 

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:
© 2017 Microsoft