SilverlightShow: Windows Phone 7 - Part #3: Understanding navigation Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: Windows Phone 7 - Part #3: Understanding navigation <p>Sir,</p> <p>When Root System Navigation failed will occur? </p> http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment8406 venkatasuresh http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Fri, 24 Aug 2012 16:04:47 GMT Re: Windows Phone 7 - Part #3: Understanding navigation Hurra, I found it!<br /> <br /> At the end of the App constructor we add an event handler to the Navigating event<br /> <br /> RootFrame.Navigating + = new NavigatingCancelEventHandler (RootFrame_Navigating);<br /> <br /> and every time we started, we finalize or change view or page pass through this event,<br /> <br /> the event is:<br /> <br /> private void RootFrame_Navigating (object sender, NavigatingCancelEventArgs e)<br />  {<br />      / / e.Uri has the complete application uri<br />      / / MessageBox.Show (e.Uri.ToString ());<br />  }<br /> <br /> I've discovered thanks to these two urls:<br /> <br />   http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/4a9d6c9d-1c73-48ae-ac04-29912b5ceadc<br />   http://blogs.msdn.com/b/ptorr/archive/2010/08/28/redirecting-an-initial-navigation.aspx<br /> <br /> <p> Thanks to Peter Torr and rhizohm.</p> <p>Authentic cracks!</p> <p>------------------------------------------</p> <p><span id="result_box"><span class="hps">let me do a</span> <span class="hps">little auto</span> <span class="hps">promo,</span><br /> <span class="hps">if you have</span> <span class="hps">websites or</span> <span class="hps">applications and would like to know what your users are doing, this app is for you!!</span>.</span> </p> <a href="http://www.windowsphone.com/en-US/apps/f7f9395a-8803-48fb-80d6-e95e745f8694">analytics client</a> <p><a href="http://windowsphoning.wordpress.com/">windowsphoning</a></p> http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment8204 KoldoKoldoKoldo http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Tue, 26 Jun 2012 17:28:25 GMT Re: Windows Phone 7 - Part #3: Understanding navigation Hello Andrea,<br /> <br /> I have been for a few days looking for information about this subject and I could not find anything.<br /> <br /> let me explain:<br /> <br /> I have an application that uses live tiles,<br /> what I do normally is in the view (PhoneApplicationPage) pointed from live tile application in it´s method OnNavigatedTo, I ask for the parameters I need to know about the live tile parameters:<br /> <br /> <br /> for example:<br /> if (NavigationContext.QueryString.TryGetValue ("panoramaItem" panoramaItem out))<br />              {<br />                  panoramaItem = "0";<br />              }<br /> <br /> <br /> <br /> So far so good, but I need to do this same check in the App.xaml.cs. Application_Launching<br /> <br /> can it be done in App.xaml.cs?, Or can I know parameters that have started the application?<br /> <br /> <p>Thank you very much for your help!</p> <p> </p> http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment8190 KoldoKoldoKoldo http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Sat, 23 Jun 2012 10:03:11 GMT Re: Windows Phone 7 - Part #3: Understanding navigation <span lang="en" class="short_text" id="result_box"><span class="hps">Thank you very much for this article!  <span lang="en" class="short_text" id="result_box"><span class="hps">The </span>PhoneApplicationService.Current.State <span class="hps">I</span> <span class="hps">did not know</span> <span class="hps">yet</span>. :-)</span></span><span class="hps"></span></span> http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment8176 BennyNeugebauer http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Sun, 17 Jun 2012 18:18:30 GMT Re: Windows Phone 7 - Part #3: Understanding navigation <p style="text-align: -webkit-auto;">I got a problem,I build two pages,One is MainPage I put a button on this page,and set it's click event logic as  navigate to a new page which named page1,the in the page1 i define a method like this ~page1(){}.then i start my test,in MainPage i click the button just define,and navigated to page1 as result.then in page1 i press backkey,GoBack to MainPage but the breakpoint i set at ~page1(),was not triggerd,i dont konw why can you explan it? thanks.</p> http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment7268 tianyutingxy http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Mon, 28 Nov 2011 13:49:05 GMT RE: Windows Phone 7 - Part #3: Understanding navigation with forward-navigation here I mean the Navigate method. Thanks http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment6095 Andrea Boschin http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Mon, 09 May 2011 09:51:04 GMT RE: Windows Phone 7 - Part #3: Understanding navigation Thanks for clarifying points about BackStack policy however when you say "forward-navigate", do you refer to "Navigate()" or "GoForward()" method or both? http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment6093 Usman ur Rehman Ahmed http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Mon, 09 May 2011 03:19:46 GMT RE: Windows Phone 7 - Part #3: Understanding navigation Ha I found the problem, my Panorama page was in a separate assembly, and there wasn't a reference to the Microsoft.Phone.Controls assembly in the main assembly. No it works ;) http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment5794 ppopadiyn http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Tue, 29 Mar 2011 22:15:40 GMT RE: Windows Phone 7 - Part #3: Understanding navigation <p>Hi,</p> <p>Do you know if the Panorama and Pivot pages could be used in navigation scenario. For example: I have a main page and I wanna navigate to a second page. When that second page contains Panorama (or Pivot) controls, it always throws an exception. But if I use a normal page everything works perfect. I am unable to find any useful information over the web. All tutorials I've seen demonstrate the Panorama as a home screen of the application and it will be quite strange if it is not possible to use it as a second page (for example).</p> <p>10x</p> http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx#comment5793 ppopadiyn http://www.silverlightshow.net/items/Windows-Phone-7-Part-3-Understanding-navigation.aspx Tue, 29 Mar 2011 22:01:37 GMT