public static void Create(Window owner) { UpdateWindow window = new UpdateWindow() { Owner = owner }; window.Show(); window.Owner = null; }
public static void Create(Window owner) { UpdateWindow window = new UpdateWindow(); if (owner == null || owner.WindowState == WindowState.Minimized) { window.WindowStartupLocation = WindowStartupLocation.CenterScreen; } else { window.Owner = owner; } window.Show(); window.Owner = null; window.Topmost = true; window.Topmost = Preferences.AlwaysOnTop; }