HwndTarget.BackgroundColor Property

 

Gets or sets the background color of the window referenced by this HwndTarget.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

public Color BackgroundColor { get; set; }

Property Value

Type: System.Windows.Media.Color

The background color, as a Color value.

The background is drawn before any other visual component. The color used must have an alpha component of 1.0. If you attempt to specify a different alpha value in the provided Color, it automatically resets to 1.0.

.NET Framework
Available since 3.0
Return to top
Show: