navigationservice

windows phone navigation immediately after loading page

♀尐吖头ヾ 提交于 2019-12-01 14:28:26
I have 2 pages.(MainPage.xaml,second.xaml) MainPage.xaml is the Login page. In this page I send login and password, and receive result. I save them(result) in Isolate Storage and navigate to the second.xaml page; When i start this application in the next time, i extract data from Isolate Storage and I want to navigate the second.xaml immidiately, but i don't know how I try write public MainPage() { InitializeComponent(); //function for Isolate storage InitializeSettings(); NavigationService.Navigate(new Uri("/Conversation.xaml", UriKind.Relative)); } But it isn't work) I understood that I

Clearing backstack in NavigationService

寵の児 提交于 2019-11-29 09:52:30
I am navigating through different pages within my application. After I login, I come to home page from where the navigation starts. During navigation, when I come to homepage, I want to go to the login page by pressing BackKey but I can only navigate to previously navigated page. I could have overriden the BackKeyPress event to navigate to the Login Page but in LoginPage I should again override the Backkeypress otherwise there appears to be cycle between loginpage and homepage on backkey press. Is there anyway to clear the navigation history? You can use NavigationService.RemoveBackEntry: http

How to navigate to another project inside same solution

此生再无相见时 提交于 2019-11-28 12:26:21
Hey Hope somebody can help. I have in group developed on many different projects and we now want to combine these. I therefore include the projects. In the startup project I include the reference to the other projects. And then I use the code from another stackoverflow thread: How to navigate to view from another project Which gives me the following NavigationService.Navigate(new Uri("/MVVMTestApp;/component/View/MainPage.xaml", UriKind.Relative)); The project builds and runs. But when I press the button that should activate the code I get an error after/during the execution of the line. The

How to navigate to another project inside same solution

谁都会走 提交于 2019-11-27 07:02:47
问题 Hey Hope somebody can help. I have in group developed on many different projects and we now want to combine these. I therefore include the projects. In the startup project I include the reference to the other projects. And then I use the code from another stackoverflow thread: How to navigate to view from another project Which gives me the following NavigationService.Navigate(new Uri("/MVVMTestApp;/component/View/MainPage.xaml", UriKind.Relative)); The project builds and runs. But when I