How to detect the resolution of my device?



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

Post New Answer

More Windows Phone OS Interview Questions

Explain how to get the geolocation data on a picture?

0 Answers  


Tell us about Windows Phone Web browser?

1 Answers  


Tell me in my code the method marked by [ondeserialized] is never called after deserialization. Is this a known issue?

0 Answers  


Can we control the web browser controls zoom?

0 Answers  


Tell me is it temporary that the control styles are included in App.xaml?

1 Answers  






How to restart or shutdown my application programmatically?

1 Answers  


Tell me can I turn article photos off?

1 Answers  


How to detect if my application is exiting so I can save state?

1 Answers  


Is .bmp format supported?

0 Answers  


How do I find my downloads on this phone?

0 Answers  


What is windows phone?

0 Answers  


How to pin an app on the emulator?

1 Answers  


Categories