5

Isolated Storage, Page Navigation, and the Application Life Cycle

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • Storing data on a phone
  • Including multiple pages in an application
  • Understanding the life cycle of a Windows Phone 7 application
  • Responding to phone events in an application

What good is an application without data? All Windows Phone 7 devices come with built-in memory for data storage, and your application can easily make use of that memory. This chapter begins with an overview of data storage techniques on the phone. You'll learn about the concept of Silverlight's Isolated Storage feature and how you can easily write and read data to and from Isolated Storage in your own applications.

This chapter also discusses the Silverlight Navigation Framework. So far, every example you've worked with has consisted of a simple one-page user interface. In some cases, this is all you need for a particular application. Many times, however, you'll find the need to display multiple pages, and you'll need to learn about the Silverlight navigation system that is in use on the Windows Phone 7 platform. You should be familiar with the concept of a page by now. In this chapter, you'll see how to easily navigate between multiple pages so that you can create more complex applications.

Finally, your application doesn't only need to be aware of the various phone events that can occur; it also needs to know how best to handle them. In this chapter, you'll learn what your application needs to do when ...

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.