Click or drag to resize
CanvasSolidColorBrushColor Property
Gets or sets the color of the brush.

Namespace:  Microsoft.Graphics.Canvas.Brushes
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public Color Color { get; set; }

Property Value

Type: Color
If the color was previously set using ColorHdr to a value that cannot be represented by a Windows.UI.Color then the value returned by this method is clamped. For example:
brush.ColorHdr = new Vector4(2.0f, 2.0f, 2.0f, 2.0f);
var color = brush.Color; // color is 255, 255, 255, 255.
See Also