Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

(Difference between revisions)

Solving Circular Navigation in Silverlight for Window Phone

From Wiki
Jump to: navigation, search
Jeffrey.Halimsetiawan (Talk | contribs)
(Jeffrey.Halimsetiawan -)
 
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Fix metadata)
Line 10: Line 10:
 
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 
|dependencies= NonLinear Navigation Services
 
|dependencies= NonLinear Navigation Services
|signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
+
|signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 
|keywords= Circular Navigation, Silverlight for Windows Phone, NonLinear Navigation Services
 
|keywords= Circular Navigation, Silverlight for Windows Phone, NonLinear Navigation Services
Line 16: Line 16:
 
|translated-by= [[User:Jeffrey.Halimsetiawan]]
 
|translated-by= [[User:Jeffrey.Halimsetiawan]]
 
|translated-from-title= Mengatasi Circular Navigation pada Silverlight for Window Phone
 
|translated-from-title= Mengatasi Circular Navigation pada Silverlight for Window Phone
|translated-from-id= <!-- Id of translated revision -->
+
|translated-from-id= 173934
|review-by=<!-- After re-review: [[User:username]] -->
+
|review-by= <!-- After re-review: [[User:username]] -->
 
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 
|update-by= <!-- After significant update: [[User:username]]-->
 
|update-by= <!-- After significant update: [[User:username]]-->
 
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 
|update-timestamp= <!-- After significant update: YYYYMMDD -->
|creationdate= <!-- Format YYYYMMDD -->
+
|creationdate= 20120928
 
|author= [[User:Jeffrey.Halimsetiawan]]
 
|author= [[User:Jeffrey.Halimsetiawan]]
 
}}
 
}}
Line 37: Line 37:
 
The steps which must be done are quite easy, as follow:
 
The steps which must be done are quite easy, as follow:
  
# Download [http://www.developer.nokia.com/Community/Wiki/File:NonLinear-WP-SLApp-Navigation-Service.zip NonLinear Navigation Services]
+
# Download [[File:NonLinear-WP-SLApp-Navigation-Service.zip]]
 
# Add '''NonLinearNavigationServices''' project in the '''Solution''' which has been created.
 
# Add '''NonLinearNavigationServices''' project in the '''Solution''' which has been created.
 
# Initialize the service at the end of class constructor whose class is the inheritance of {{Icode|Application}} class.<code csharp>NonLinearNavigationService.Instance.Initialize (RootFrame);</code>
 
# Initialize the service at the end of class constructor whose class is the inheritance of {{Icode|Application}} class.<code csharp>NonLinearNavigationService.Instance.Initialize (RootFrame);</code>
Line 48: Line 48:
 
== Reference ==
 
== Reference ==
 
Kiriaty, Yochay. 2010. [http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/12/13/solving-circular-navigation-in-windows-phone-silverlight-applications.aspx Solving Circular Navigation in Windows Phone Silverlight Applications].
 
Kiriaty, Yochay. 2010. [http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/12/13/solving-circular-navigation-in-windows-phone-silverlight-applications.aspx Solving Circular Navigation in Windows Phone Silverlight Applications].
 +
<!-- Translation --> [[en:Mengatasi Circular Navigation pada Silverlight for Window Phone]]
 +
[[Category:Code Examples]]

Revision as of 07:06, 1 October 2012

This article explains how to resolve circular navigation problem that may occurs in the navigation between pages in Silverlight for Windows Phone.

WP Metro Icon UI.png
SignpostIcon XAML 40.png
SignpostIcon WP7 70px.png
Article Metadata
Tested with
Devices(s): Nokia Lumia 710
Compatibility
Platform(s): Windows Phone 7.5
Windows Phone 7.5
Dependencies: NonLinear Navigation Services
Article
Keywords: Circular Navigation, Silverlight for Windows Phone, NonLinear Navigation Services
Translated:
By Jeffrey.Halimsetiawan
Last edited: hamishwillee (01 Oct 2012)

Contents

Introduction

In the Silverlight for Windows Phone application model which is using several pages as its element, almost all applications consist of the various pages and the user has the right to navigate back. For each application, Windows Phone also keeps back-stack of pages which is a history of the pages that have been visited by the user. With such mechanism, developers are often faced with a situation where the application has a loop on page navigation.

Loop on the back-stack from the application navigation means there is duplication of the same page in the application back-stack. For example, the illustration can be seen in game Petualangan Aksara di Tanah Jawa below:
CircularNavigationIllustrat.jpg

Another example, when you create registration wizard, it requires a lot of inputs so it consists of several pages. If we use NavigationServices.Navigate() method to return to the MainPage then we will return to the GamePage when we press the 'Back' button. In fact, the expected response is out of the application.

The solution to overcome this problem is to use a NonLinear Navigation Services library developed by Windows Phone Recipes.

Procedure

The steps which must be done are quite easy, as follow:

  1. Download File:NonLinear-WP-SLApp-Navigation-Service.zip
  2. Add NonLinearNavigationServices project in the Solution which has been created.
  3. Initialize the service at the end of class constructor whose class is the inheritance of Application class.
    NonLinearNavigationService.Instance.Initialize (RootFrame);

Summary

With NonLinear Navigation Services, developer will be easier to develop applications because they do not need to waste a lot of time thinking about the navigation management of the application.

Good luck!

Reference

Kiriaty, Yochay. 2010. Solving Circular Navigation in Windows Phone Silverlight Applications.

100 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×