Esempio n. 1
0
        private AlertWindow CreateContainer()
        {
            AlertWindow      newWindow = new AlertWindow();
            FrameworkElement owner     = Alert.ResolveOwner();

            if (owner != null)
            {
                newWindow.Owner = Window.GetWindow(owner);
            }
            newWindow.ShowInTaskbar         = false;
            newWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            return(newWindow);
        }
Esempio n. 2
0
 private AlertWindow CreateContainer()
 {
     AlertWindow newWindow = new AlertWindow();
     FrameworkElement owner = Alert.ResolveOwner();
     if (owner != null)
     {
         newWindow.Owner = Window.GetWindow(owner);
     }
     newWindow.ShowInTaskbar = false;
     newWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
     return newWindow;
 }