HTML and CSS Reference
Figure 5-4. Performing an application-specific search
■ If you start a search from the charms bar while your app is being displayed, then Win-
dows will automatically select it from the list, focusing the initial search on your app.
In this chapter, I showed you how to use the life-cycle events to respond to the way in which
Windows manages Metro apps. I described each of the key events and showed you how to use
the DOM to ensure that your app is receiving and processing them correctly.
Particular care must be taken to cleanly wrap up background tasks when an app is being
suspended, and I showed you how to get control of this process by requesting a suspension
deferral, allowing an extra few seconds to minimize the risk of potential errors or stale data
when the app is resumed.
Finally, I showed you how the activated event is used to signal different requests, includ-
ing obligations to fulfill the contracts that bind a Metro app to the wider Windows platform.
I showed you the search contract, but there are several others, and I recommend you take the
time to explore them fully. The more contracts you implement, the more integrated your app
In this topic, I set out to show you the core system features that will jump-start your Metro
app development. I have shown you how to use data bindings, the major structural controls,
how to deal with snapped and filled layouts, how to customize your application's tile, and, in
this chapter, how to take control of the application life cycle. With these skills as your founda-
tion, you will be able to create rich and expressive Metro apps and get a head start on the final
release of Windows 8.
I wish you every success in your Metro development projects.