Gets or sets the color of this SolidColorBrush.
Assembly: System.Windows (in System.Windows.dll)
<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"/>
Dependency property identifier field: ColorProperty
The 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.
If you deliberately set a Transparent value, as opposed to a null value, a Transparent value is hit testable and will intercept mouse 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 more information on hit testing concepts, see Hit Testing and Input Events.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.