public static void Display() { if (This.Visibility == Visibility.Visible) { This.Close(); return; } This.Show(); This.Activate(); This.WindowState = WindowState.Normal; }