SUMMARY

You should now have a good understanding of most of the Silverlight techniques you can use when writing apps for Windows Phone 7. This chapter touched on some important concepts, such as shapes, colors, brushes, and transforms. You should be able to draw all sorts of shapes and fill them with solid-color and gradient backgrounds. You now know how easy it is to apply transform effects such as rotation, scaling, skewing, and even moving objects.

EXERCISES

  1. True or False: Silverlight supports using HTML color codes to create a SolidColorBrush object in the code-behind file.
  2. Which of the following are not valid Shape controls in Silverlight for Windows Phone 7? (Choose all that apply.)
    1. Triangle
    2. Circle
    3. Polyline
    4. Polygon
    5. Rectangle
  3. When you use the TransformGroup object, does the order in which transform effects are added matter?
  4. What is the preferred method of repeating a task on a timed basis in Silverlight?
  5. Which of the following are not valid transform effects in Silverlight? (Choose all that apply.)
    1. RotateTransform
    2. TranslateTransform
    3. SpinTransform
    4. SkewTransform
    5. SlideTransform
    6. FadeTransform

Answers to the Exercises can be found in the Appendix.

image WHAT YOU LEARNED IN THIS CHAPTER

Topic Key Concepts
Shapes Silverlight for Windows Phone 7 enables you to use several shape objects to draw various items on the screen. These include the Line, Ellipse, Rectangle, Polyline ...

Get Beginning Windows® Phone 7 Application Development: Building Windows® Phone Applications Using Silverlight® and XNA® 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.