コード例 #1
0
 /// <summary>
 /// Navigate back a page.
 /// </summary>
 private void PageGoBack()
 {
     if (FrameMP.CanGoBack)
     {
         FrameMP.GoBack();
     }
 }
コード例 #2
0
ファイル: MainPage.xaml.cs プロジェクト: BajaPaul/ColorBars
 /// <summary>
 /// Navigate back a page. If large rectangle in page ShowBars is visible, then collapse large rectangle instead of going back to previous page.
 /// </summary>
 private void PageGoBack()
 {
     if (FrameMP.CanGoBack)
     {
         if (boolShowBarsLargeRect)        // True if large rectangle in page ShowBars is visible, false otherwise.
         {
             showBars.LargeRectCollapse(); // Collapse large rectangle instead of going back to previous page.
         }
         else                              // Go back to previous page.
         {
             FrameMP.GoBack();
         }
     }
 }