SolidColorBrush.Color Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the color of this SolidColorBrush.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<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"/>
XAML Values
Dependency property identifier field: ColorProperty
The Color property of SolidColorBrush uses the same type conversion as the SolidColorBrush class construction behavior, which in turn is forwarded as the default attribute type conversion for all Brush properties. This syntax enables you to specify a string value for a property or attribute that takes a Brush, and the string is interpreted within a number of possible conventions, which include named colors, sRGB, or scRGB.

Both sRGB and scRGB schemes can specify an alpha value.
For more information on the XAML syntax, see SolidColorBrush, Color and Brush.
If you deliberately set a Transparent value, as opposed to a null value, a Transparent value is hit testable and will intercept user actions that you might have intended for objects beneath the transparency. In contrast, a null brush is not hit testable. For most scenarios, a null brush is what you want, not a transparent SolidColorBrush. Most properties that take a Brush value, for example Control.Background, start with a default value of a null brush. The default of Transparent applies only if you actually construct a non-null SolidColorBrush and apply it to an existing Brush property.
For information on setting Color to a predefined color name rather than an existing value of Color, see "Setting Predefined Colors for a SolidColorBrush in Code" section of SolidColorBrush.