public void ShowErrorNotificationWindow(Window window) { this.IsEnabled = false; ErrorNotification errorNotification = new ErrorNotification(); errorNotification.OwningWindow = this; //errorNotification.Left = this.Left + (this.Width - errorNotification.ActualWidth) / 2; //errorNotification.Top = this.Top + (this.Height - errorNotification.ActualHeight) / 2; errorNotification.Show(); }
public void ShowErrorNotificationWindow(Window window) { this.IsEnabled = false; ErrorNotification errorNotification = new ErrorNotification(); errorNotification.OwningWindow = this; errorNotification.Show(); this.MouseDown -= Window_MouseDown; errorNotification.Left = origin.X + (size.Width - errorNotification.ActualWidth) / 2; errorNotification.Top = origin.Y + (size.Height - errorNotification.ActualHeight) / 2; }