Introducing Brushes
At one time or another, you have probably wanted to fill your UI controls with interesting background textures or gradients or set a particular color, maybe as the background or the foreground. In WPF, you fill visual elements with brushes. WPF defines several kinds of brushes, all deriving from System.Windows.Media.Brush
. The following list summarizes available brushes:
SolidColorBrush
enables you to fill a graphical object with a single color. Colors are exposed as static properties from the System.Windows.Media.Colors
class.
LinearGradientBrush
enables you to fill a graphical object with a linear gradient composed of multiple ...
Get Visual Basic 2015 Unleashed 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.