/// <summary> /// Disables "minimize to tray" behavior for the specified Window. /// </summary> /// <param name="window">Window to enable the behavior for.</param> public static void DisableMinimizeToTray(Window window) { if (!MinimizeInstances.ContainsKey(window)) { Console.WriteLine(string.Format("Minimization not enabled for '{0}'", window.Title)); } else { var instance = MinimizeInstances[window]; instance.Disable(); MinimizeInstances.Remove(window); } }
public static void Disable(Window window) { UIHelpers.RevertHideFromAltTab(window); if (!MinimizeInstances.ContainsKey(window)) { Console.WriteLine(string.Format("Minimization not enabled for '{0}'", window.Title)); } else { var instance = MinimizeInstances[window]; instance.Disable(); MinimizeInstances.Remove(window); } }