Chapter 14. Drawing

This chapter covers:

  • Drawing with Shapes
  • Drawing using direct rendering
  • Drawing with Visuals
  • Drawing with Geometries
  • How to use good pictures to make horrendously ugly backgrounds

It’s interesting that, in most applications—particularly business applications—there isn’t much straight drawing. Yeah, technically, everything is being drawn on the screen, but because of the wealth of built-in controls and third-party controls, you generally don’t do too much shoving stuff on the screen yourself.

In Windows Forms, the most common scenarios for drawing (outside of graphical applications) were to create custom controls or to create a custom look-and-feel for an existing control. We (the authors) have done a lot of this, and it ...

Get WPF in Action with Visual Studio 2008 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.