In both Window Forms and WPF there is this .WindowState which I can set to 
Minimized,
maximized or Normal
I wonder if there is anything similar already implemented for docking the window to the left/right sides of the screen like with the Win + <- / -> keys for Windows 7/8?
I've googled and it seems people call Win32 APIs and implement this on their own
Am I supposed to write a custom docking code or is there a simple flag I can set somewhere like the WindowState ?