Reputation: 1409
I am developing an app for Windows Phone 8.1
and my app just can work properly if I can get the resolution of mobile screen. I tried many ways but they just work on Windows Phone 8.0
and lower. I tried these ways from:
If someone knows how to do it on Windows Phone 8.1
, please help me!
If somebody can help me, I have a little question, I am using Visual Studio RC2
, when I choose to develop an app for Windows phone
, it is automatically tick OS version 8.1
, if i want to develop an app for OS version 8.0
, how to change that settings?
Edit: I solved the second question.
Upvotes: 4
Views: 5979
Reputation: 1439
Use Window.Current.Bounds to get the position and size of the available space your app can use on the screen.
Window.Current.Bounds
Upvotes: 10