Color Brushes
The two color brushes are SolidColorBrush and LinearGradientBrush. They sound straightforward, but these Brushes are more flexible than most people realize.
SolidColorBrush
SolidColorBrush, used implicitly throughout this book, fills the target area with a single color. It has a simple Color property of type Windows.UI.Color. Color exposes four Byte properties (one per channel): A for alpha, R for red, G for green, and B for blue. Because of the syntax that treats strings such as “Blue” or “#FFFFFF” as SolidColorBrushes, they are indistinguishable from their underlying Color in XAML. In fact, color strings can take one of three different forms in XAML:
→ A name, like Red, Khaki, or DodgerBlue, matching one of the static properties ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access