Minimize a window in WPF?
Solution 1:
set WindowState = WindowState.Minimized;
Solution 2:
You are looking for the Window.WindowState
property. It is a dependancy property and when changed will set the Window.RestoreBounds
property , so you can always restore to the size before the change.
See the enumeration here.
myWindow.WindowState = WindowState.Minimized;