Background Property

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