How do you minimize a window programmatically when using windows WPF? I can seem to find a .Resize attribute?
Use the window's object WindowState property to programmaticly minimise a window.
window.WindowState = WindowState.Minimized;
Setting window state to WindowState.Normal will restore the window to it's previous WindowsState, size and location.
window.WindowState = WindowState.Normal;
Window.Normal is a bit of a misnomer. The remarks in the WindowState property and the WindowState Enumeration MSDN articles hint at WindowState.Normal actual functionality and testing confirms it.