Solid Brush in WPF
A solid brush is the most basic brush and paints an area with a solid color. The SolidColorBrushobject represents a solid color brush. The Opacity property of the SolidColorBrush represents thetransparency of the color that values between 0 and 1 where 0 is fully transparent and 1 is fullyopaque. The Color property represents the solid color of the brush, which is a type of Colors class.
Creating a Solid Brush
The SolidColorBrush element in XAML creates a brush with a solid color. The following codesnippet creates a solid color brush with a blue color.
We can also set the Color property to the hexadecimal code of the color. The following codesnippet sets the color of the SolidColorBrush to blue using the hexadecimal value of blue color.
Figure 13 taken from MSDN shows the properties and hexadecimal values of the properties of theColors class.