Navigation Service or NavigationContext is always null
-
Monday, May 31, 2010 2:00 AM
Hi I am trying to use NavigationContext.Querystring to get the Parameters, but I am getting the Object is always null. Is there any implementation specfic rules for getting the same. I am using UriMaper for mapping as shown. Is there any other way to get the Parameter of Querystring in Silverlight 4.0
<
navigation:Frame.UriMapper> <uriMapper:UriMapper><uriMapper:UriMapping Uri="/{pageName}" MappedUri="/{pageName}.xaml"/>
</navigation:Frame.UriMapper>
All Replies
-
Tuesday, June 01, 2010 5:33 AM
Please check this blog post, download the source code and compare your application with it to find the cause:
-
Tuesday, June 01, 2010 9:49 AM
Can I have any example on SL4 as I am developing the same in SL4
-
Wednesday, June 02, 2010 1:43 AM
Here it is, sample in sl4:
http://cid-18f192401f835d41.skydrive.live.com/self.aspx/.Public/NavigationApp.zip
Please check the ProductDetail.xaml.
-
Wednesday, June 02, 2010 2:52 AM
Alternatively, u could at look at this video by Tim Heuer
http://www.silverlight.net/learn/videos/silverlight-videos/navigation-framework/
Sharker Khaleed Mahmud
-
Wednesday, June 02, 2010 10:42 AM
Ok I resolved it the Control needs to be in Silverlight Page where we can get the NavigateTo event
-
Tuesday, September 14, 2010 6:57 AM
Thanks a lot. It solved my problem.
-
Thursday, March 22, 2012 12:24 PM
Just had the problem myself but I was checking the NavigationContext before the page has fully loaded which caused it to be null, I just had to check the context in the loaded event

