How to detect the resolution of my device?
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 |
is there a way to know if my code is running on emulator or device?
How to detect the resolution of my device?
Explain how to access the liveid credentials a user has entered into the device?
How do you know you have a virus on your phone?
In the emulator, networkinterface.getisnetworkavailable() always return false?
Explain how to save silverlight uielements into an image?
How to customize front page?
What is windows phone?
What is the latest version of windows?
What are temporary files on my phone?
What happens to isolatedstorage when app is uninstalled?
Explain how to deserialize json from a rest call?