Пример #1
0
        public static new ConfirmationResult Show()
        {
            var box = new ConfirmationBox();

            box.Owner = App.Current.MainWindow;
            box.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            box.ShowDialog();
            return(box._result);
        }
Пример #2
0
        public static new ConfirmationResult Show()
        {
            var box = new ConfirmationBox();

            if ((null != App.Current.MainWindow) && (App.Current.MainWindow.IsActive))
            {
                box.Owner = App.Current.MainWindow;
            }
            box.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            box.ShowDialog();
            return(box._result);
        }