Minimize a window in WPF?
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;