I'm working on a custom window to add more styling to my application.
I followed some tutorials to enable basic window behaviors :
These are all okay.
I would like what is I believe a Windows 7 functionnality : When a window is maximized, I can still drag it to another screen, where it will kept its maximized state.
Do you have any Idea how I could do this?
PS : The tutorials I used :
Thanks a lot,
Regards
If you have a Thumb
in your title bar, you can subscribe to the DragDelta
event and wait until WindowState == WindowState.Maximized && dragEventArgs.Y > 100
to restore the window.