Chapter 15. Navigation and dialogs
This chapter covers
- Browser navigation
- The Navigation Application template
- Using navigation with out-of-browser applications
- Working with common dialogs
- Creating custom dialogs and pop-ups
When you first created a Silverlight 2 application, you ended up with a project that contained a single white main page, probably sized at 300 × 400, depending on the template you used. There was no guidance for structuring your application or how to move from page to page. Unlike HTML pages or WPF/Windows Forms, the navigation structure wasn’t something intuitive, building on a decade or more of knowledge and established patterns. Instead, most new Silverlight developers were left staring that that blank page, wondering what to do next.
Silverlight 3 introduced not only a complete navigation framework, but also an application template built on this framework. The navigation framework takes a modern browser-oriented approach to navigation, supporting concepts such as journal histories, back-and-forward navigation, and uniquely addressable pages. This framework addressed the needs of both application structure and end-user navigation.
Silverlight also supports dialog content. In addition to the standard open and save dialogs provided by the operating system, you can create your own simulated dialogs using controls such as Popup and ChildWindow.