Answer / 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|
Explain how to detect the resolution of my device?
Tell me is wcf supported in windows phone?
In the emulator, networkinterface.getisnetworkavailable() always return false?
How to play two mediaelements at once?
How to customize front page?
Can you please explain the best way to detect that I am in design-mode in expression blend or visual studio?
How to pin an app on the emulator?
Explain how to edit locations for local?
Explain how to detect if my application is exiting so I can save state?
Explain how to dismiss the sip programmatically?
Tell me can I open sockets in windows phone?
Tell me is it possible to run two instances of emulator on the same machine. I am doing some networking app and need two emulators to test it?