/// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used such as when the application is launched to open a specific file. /// </summary> /// <param name="e">Details about the launch request and process.</param> /// private void NavigateToPage(GoToPageMessage message) { Frame rootFrame = Window.Current.Content as Frame; if(message.PageNumber == 1) { rootFrame.Navigate(typeof(Page2)); } }
private void NextPage() { GoToPageMessage message = new GoToPageMessage { PageNumber = 1 }; Messenger.Default.Send<GoToPageMessage>(message); }
private void WeatherPage() { GoToPageMessage message = new GoToPageMessage { PageNumber = 2 }; Messenger.Default.Send<GoToPageMessage>(message); }