Exemple #1
0
        private static void Manager_Released(object sender, EventArgs e)
        {
            ViewLifetimeManager manager = (ViewLifetimeManager)sender;

            manager.Released -= Manager_Released;

            WindowInformation info = _childWindows[manager.Id];

            _childWindows.Remove(manager.Id);

            _ = info.CoreView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                Window.Current.Close();
            });
        }
 private WindowInformation(CoreApplicationView coreView, ApplicationView view)
 {
     CoreView = coreView;
     View     = view;
     Manager  = ViewLifetimeManager.CreateForCurrentView();
 }