I want to set the window to an exact size for creating a game, since I will use the X and Y coordinates of the screen to move things. The problem is that when setting the window width and height it includes the border in that size, so your actual size is smaller than what you specify. What can I do about this?
-
2Can you set the width and height to the panel inside of the window instead? Usually it's a Grid panel unless you have changed it. You can then set your window's SizeToContent property so it can autosize to fit the Grid.failedprogramming– failedprogramming2013-03-20 01:50:14 +00:00Commented Mar 20, 2013 at 1:50
-
Thanks! It is actually a Canvas, but that worked. Exactly what I was looking for.Emrys90– Emrys902013-03-20 01:53:34 +00:00Commented Mar 20, 2013 at 1:53
-
No worries, that's great!failedprogramming– failedprogramming2013-03-20 02:19:55 +00:00Commented Mar 20, 2013 at 2:19
Add a comment
|