4
How is called the function of clicking and dragging the title bar of the window to the corners of the screen, and they auto adjust?
Example: when you drag the window in the right corner of the screen, it occupies 50% of the screen on the right, if it is higher or lower is 25% of the screen, the same goes for the left, if we drag to the top edge of the screen, the window maximizes, and if it is maximized, and we drag it to the middle of the screen, it comes out of maximized mode.
This function is native to windows, when I created my project, and had the title bar native to windows, this function worked, now that I made a custom title bar, I lost this function, I did several searches and until now do not know how to implement, maybe this function has a specific name, and to enable and disable this function in windows 10 is in "Settings" -> "System" -> "Multitasking" -> in the title "Adjust" -> the function "Organize windows automatically by dragging them to the sides or corner of the screen"
It is in c# even, it worked by placing the second code in the window constructor method.. however appeared some graphic bugs, on top of the window, now has a small white bar, but that was it, worked what I wanted, thanks even! when my reputation reaches 15 I give you a treat
– Dênis Azevedo
I’m glad it worked! :)
– André Morales