コード例 #1
0
 public void ShowNestedSample <TPage>(bool clearStack = false) where TPage : Page
 {
     if (NestedSampleFrame.Navigate(typeof(TPage)) && clearStack)
     {
         NestedSampleFrame.BackStack.Clear();
     }
 }
コード例 #2
0
        public void ShowNestedSample <TPage>(bool?clearStack = null) where TPage : Page
        {
            var wasFrameEmpty = NestedSampleFrame.Content == null;

            if (NestedSampleFrame.Navigate(typeof(TPage)) && (clearStack ?? wasFrameEmpty))
            {
                NestedSampleFrame.BackStack.Clear();
            }
        }