Chapter 15. 2D Graphics

IN THIS CHAPTER

Drawings

Visuals

Shapes

Brushes

Effects

Improving Rendering Performance

Applications and components can have many reasons for drawing rectangles, ellipses, lines, or other shapes and paths. Most custom control templates tend to require some drawing to get their custom look, as was done in the previous chapter with Button and ProgressBar templates. But applications might simply want to provide an experience with custom rendering, regardless of whether it’s done in the context of controls. This could be in the form of a product logo or simple curves to separate areas of a Window. On the Web, these types of experiences are typically created by embedding images, but with the drawing capabilities ...

Get WPF 4 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.