laci37
laci37

Reputation: 490

Resizing WPF windows according to the size of the screen

I have a multi window application, which fills the entire screen, I want it to be usable on all screen sizes, so I would like to resize it according to the screen size. How can I solve this?

Upvotes: 2

Views: 890

Answers (1)

Mel Padden
Mel Padden

Reputation: 1003

You can use Screen.GetWorkingArea method to return a rectangle object which represents the screen area available. You should be able to use this information to decide where to place your screen elements.

Link: http://msdn.microsoft.com/en-us/library/1a92hss5.aspx

Upvotes: 1

Related Questions