Select Page

I wanted to move the form to the bottom right. The code was fairly simple but I am unsure if it’s really good for a WPF project. So my research is not going to stop here. For the time being I am happy with the results.

The following gist shows the code needed to get the job done. I did have to add two references: System.drawing, System.Windows.Forms .

The code just changes the placement away from the top and left sides of the screen minus the size of the window in question. Luckily it is based on the size of the working area of the desktop so it can handle different resolutions. This will also be useful if I change the size of the window and need to reapply it.

Happy coding,