Brush colors may be specified in hex notation with three, four, six or eight digits as shown in the MSDN page for SolidColorBrush
:
<object property="#rgb"/>
- or -
<object property="#argb"/>
- or -
<object property="#rrggbb"/>
- or -
<object property="#aarrggbb"/>
#rgb
expands to #rrggbb
(like it does in CSS hex notation), and #argb
expands to #aarrggbb
. Using three or six digits, the alpha is always maxed out. That is, these are all equivalent:
<SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAA" />
<SolidColorBrush x:Key="DisabledBorderBrush" Color="#FAAA" />
<SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAAAAA" />
<SolidColorBrush x:Key="DisabledBorderBrush" Color="#FFAAAAAA" />