private async Task CreateViewsAsync() { // Get a ViewInfo from current dispatcher (Xaml or Unity) await AppViewManager.CreateFromCurrentDispatcherAsync("Main"); // Create a new view for the auth flow (always Xaml) await AppViewManager.CreateNewAsync("Auth", typeof(AuthPage)); }
private async Task InitialiseAppViewManager() { // Capture the "Main" view which becomes 3D when Unity starts var mainView = await AppViewManager.CreateFromCurrentDispatcherAsync("MainPage"); // Create a new 2D view for the "Content" page. var contentPage = await AppViewManager.CreateNewAsync("ContentPage", typeof(ContentPage)); }