CHAPTER 4
Colors and Brushes
Almost everything visible on your computer screen is somehow related to colors and brushes. For example, you use a brush with a specified color to paint the background of a button, the foreground of text, and the fill of a shape. We have used colors and brushes throughout this book, but so far we have done most of the work with the simple SolidColorBrush object. In fact, you can use colors and brushes to paint user interface and graphics objects with anything from simple solid colors to complex sets of patterns and images. This chapter covers the color system and some of the brushes defined in WPF. It also discusses ...
Get Practical WPF Charts and Graphics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.