O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Brushes

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: Opacity, Transform, and RelativeTransform. Unlike Transform, RelativeTransform is relative to the size of the area being covered with the Brush.

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required