WPF: How to move an extended custom window?

I am working on a custom window to add more styles to my application.

I followed some tutorials to enable base window behavior:

  • Closing
  • Maximization
  • Minimization
  • Moving
  • Change of size

Everything is fine.

I would like me to consider the functionality of Windows 7: When the window is maximized, I can still drag it to another screen, where it will save its maximum state.

Do you have an idea how I can do this?

PS: The tutorials that I used:

,

+3
2

Thumb , DragDelta WindowState == WindowState.Maximized && dragEventArgs.Y > 100, .

+2

, Windows ?

Windows 7 , , . , , , , DragMove() , .

+1

Source: https://habr.com/ru/post/1773603/


All Articles