I do know how to open additional windows using TryShowAsStandaloneAsync
. However, if the original window is closed - TryShowAsStandaloneAsync
fails (Wh
I'm not sure if you're using Dispatcher.RunAsync
to create the view, i.e:
async private void Button_Click(object sender, RoutedEventArgs e)
{
CoreApplicationView newView = CoreApplication.CreateNewView();
int newViewId = 0;
await newView.Dispatcher.RunAsync(CoreDispatcherPriority.High, () =>
{
var frame = new Frame();
frame.Navigate(typeof(MainPage), newViewId);
Window.Current.Content = frame;
// In Windows 10 UWP we need to activate our view first.
// Let's do it now so that we can use TryShow...() and SwitchAsync().
Window.Current.Activate();
newViewId = ApplicationView.GetForCurrentView().Id;
});
bool viewShown = await ApplicationViewSwitcher.TryShowAsStandaloneAsync(newViewId);
}
for more info, please refer to : https://daxsnippets.wordpress.com/2015/07/09/windows-10-create-views/