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