Esempio n. 1
0
        private static async void ModalWindowClosing(IWorkItem workitem, System.ComponentModel.CancelEventArgs e)
        {
            if (!(await workitem.Close()))
            {
                e.Cancel = true;
                return;
            }

            global::Prism.Regions.RegionManager.SetRegionManager(workitem.Window.GetRegionHolder(), null);
            global::Prism.Regions.RegionManager.UpdateRegions();
        }
        public void Close_UnitTest()
        {
            IWorkItem instance = GetTestWorkItem();

            instance.Close();
        }