コード例 #1
0
        /// <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));
            }
        }
コード例 #2
0
 private void NextPage()
 {
     GoToPageMessage message = new GoToPageMessage { PageNumber = 1 };
     Messenger.Default.Send<GoToPageMessage>(message);
 }
コード例 #3
0
 private void WeatherPage()
 {
     GoToPageMessage message = new GoToPageMessage { PageNumber = 2 };
     Messenger.Default.Send<GoToPageMessage>(message);
 }