Now that we have identified the main points of the Navigation Framework, we will begin by creating a sample from the beginning.
We will create an application which makes use of the Silverlight Navigation functionality, showing how we can control the navigation status when it begins or ends. Also, we will learn how to pass parameters via URI.
To create a new project, go to New Project and choose a Silverlight Navigation Application project.
Give the project a name and click Ok.
Later, we will be asked if we want to create a project for hosting the Silverlight application. For convenience, choose to create an ASP.NET Web Application project.
After clicking OK, Visual Studio applies the Template associated with this kind of project. It generates a structure depending on the solution to locate an area for page definition at first sight, as shown in the following screenshot.
Main Page: If we observe it, we can see that it has created a main page (
MainPage.XAML...