UIElement _configureNavigation(XFrame rootXFrame, Type rootPageType, bool isRoot) { Frame rootFrame = null; if (isRoot) { rootFrame = Window.Current.Content as Frame; } if (rootFrame == null) { rootFrame = new Frame(); } if (isRoot) { Window.Current.Content = rootFrame; } FrameNavigator = new XUWPFrameNavigator(_scope, rootXFrame, rootFrame, _viewResolver, rootPageType); // Ensure the current window is active if (isRoot) { Window.Current.Activate(); } SystemNavigationManager.GetForCurrentView().BackRequested += XUWPFrameManager_BackRequested;; return(rootFrame); }
UIElement _configureNavigation(XFrame rootXFrame, Type rootPageType, bool isRoot) { Frame rootFrame = null; if (isRoot) { rootFrame = Window.Current.Content as Frame; } if (rootFrame == null) { rootFrame = new Frame(); } if (isRoot) { Window.Current.Content = rootFrame; } FrameNavigator = new XUWPFrameNavigator(_scope, rootXFrame, rootFrame, _viewResolver, rootPageType); // Ensure the current window is active if (isRoot) { Window.Current.Activate(); } SystemNavigationManager.GetForCurrentView().BackRequested += XUWPFrameManager_BackRequested; ; return rootFrame; }