Chapter 24. Graphics and effects


This chapter covers
  • Creating basic shapes and geometries
  • Painting with brushes
  • Working with effects
  • Creating pixel shader effects


In previous chapters, you’ve seen interesting controls that include text, rectangles, and even more complex shapes. Even the lowly button, for example, has text, a couple of rectangles, and a gradient background. Controls such as the pop-up ChildWindow control have drop shadows to enhance their appearance and help them stand out in the eyes of the user. Those buttons and other controls use vector graphics, brushes, and effects.

Graphics within Silverlight are vector-based; they’re mathematically based objects. They’re ideal for internet distribution because vector-based graphics ...

Get Silverlight 5 in Action 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.