SolidColorBrush.Color Property

Definition

Gets or sets the color of this SolidColorBrush.

Equivalent WinUI property: Microsoft.UI.Xaml.Media.SolidColorBrush.Color.

public:
 property Color Color { Color get(); void set(Color value); };
Color Color();

void Color(Color value);
public Color Color { get; set; }
var color = solidColorBrush.color;
solidColorBrush.color = color;
Public Property Color As Color
<SolidColorBrush Color="predefinedColorName"/>
- or -
<SolidColorBrush Color="#rgb"/>
- or -
<SolidColorBrush Color="#argb"/>
- or -
<SolidColorBrush Color="#rrggbb"/>
- or -
<SolidColorBrush Color="#aarrggbb"/>
- or -
<SolidColorBrush Color="sc#scR,scG,scB"/>
- or -
<SolidColorBrush Color="sc#scA,scR,scG,scB"/>

Property Value

Color

The brush's color. The default value is Transparent.

Applies to