SUMMARY

This chapter covers a lot of material. You were introduced to the Silverlight runtime. You were also introduced to the XAML programming language, which is used to design user interfaces in Silverlight, both for the web and the phone. Next, the chapter provided a thorough introduction to various Silverlight controls you'll be using as you create Windows Phone 7 apps. You should have a good understanding of concepts such as control event handling, adding code to the code-behind file, and setting and retrieving values from the various Silverlight controls.

In the next chapter, you'll learn about some complex controls that are available for Windows Phone 7 development. You'll also explore some more advanced Silverlight programming concepts, such as element binding, data binding, transforms, themes, and more.

EXERCISES

  1. True or False: Windows Phone 7 applications support only vertical display orientations.
  2. Which of the following properties should you set when you want to have multiple RadioButton controls on a page but with only one valid choice?
    1. ButtonGroup
    2. MatchingGroup
    3. GroupName
    4. RadioElements
  3. What Silverlight layout control should you use if you want to host several controls in a vertical or horizontal layout?
  4. When using the HyperlinkButton control, which property must be set if you want the phone to automatically launch its internal web browser and navigate to the destination page?
  5. What are the two ways you can subscribe to Silverlight control events?

Answers to the ...

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.