The Last Word

In this chapter, you delved deeper into WPF's 2-D drawing model. You began with a thorough look at the Path class, the most powerful of WPF's shape classes, and the geometry model that it uses. Next, you considered how you could use a geometry to build a drawing, and to use that drawing to display lightweight, noninteractive graphics. Finally, you tackled the most efficient way to display graphics in WPF—the lower-level visual layer. Using the visual layer, you saw how you could build a basic drawing application that uses sophisticated hit testing.

In the next chapter you'll consider one of the places where you can put your drawing skills to good use—creating custom control templates.

Get Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition 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.