It’s usually not obvious, but XAML elements almost never interact directly with colors. Instead, most uses of color are wrapped inside objects known as
Brushes. This is an extremely powerful indirection because many different brushes can be swapped in.
Brush itself exposes three properties:
RelativeTransform is relative to the size of the area being covered with the
Brush has several subclasses, and these can be divided into color brushes versus tile brushes. Although this section mostly demonstrates
Brushes on a
Path, keep in mind that these
Brushes can be used as the background, foreground, or outline of just about anything you can put on the screen—even the foreground ...