Get window width / height in Windows store apps
c#, windows-8, windows-store-apps, xaml
Solution
You can find out the size of the Window at any moment using the property Window.Current.Bounds. For more details, read: How to get the resolution of screen? For a WinRT app?
Problem
I currently have a basic page which loads, and I need some way of obtaining the width and height of the window, preferably in the constructor. The problem is, in the constructor, or before the page is completely loaded, I can't seem to get hold of the width and height. After it is loaded I can just use: ``` this.ActualWidth; this.ActualHeight; ``` Is there any window load complete event I can use or any way to obtain the width and height during the loading?