Answer Posted / diana
(App.Current.RootVisual as FrameworkElement).ActualHeight and (App.Current.RootVisual as FrameworkElement).ActualWidth gives you device's resolution
If you want to know the visible size (taking AppBar / SystemTray into account) then just ask for it off the page instead.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Tell me is there a way to know if my code is running on emulator or device?
What is the windows phone front page?
Are there apis to read rss/atom feeds?
Explain about the windows phone?
How to get the geolocation data on a picture?
Tell me is securestring supported in windows phone?
Can we control the web browser controls zoom?
Can I write multi-player games using wi-fi or blue tooth in the device.?
Tell me is there any internal page notification that it receives to detect a phone call?
Suppose I am trying to receive toast notifications in emulator app. I got everything setup but notification does not show up in emulator at all?
explain the best way to detect that I am in design-mode in expression blend or visual studio?
Explain about windows phone web browser?
Explain I am getting too many mouse leaves on my custom control.?
I looked through the medialibrary class in xna, and it looks like we can only enumerate through audio, but not video content in the media library?
Suppose when I deployed my xna app to the xde, the orientation is in portrait mode, but when I deploy it to a device, it's in landscape mode.?