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 sniff network traffic from the emulator?

0 Answers  


Tell me can I turn article photos off?

1 Answers  


Tell me is there a way to detect if application is idle?

0 Answers  


Explain how to detect the resolution of my device?

0 Answers  


The MarketPlace Launchers overloads for Show has parameters, what are these?

1 Answers  






Explain does the web browser control share the ie cache?

0 Answers  


Explain how to identify a device or a user?

0 Answers  


Explain about windows phone web browser?

0 Answers  


How to show the sip keyboard in xna app?

0 Answers  


Is .bmp format supported?

0 Answers  


Explain Windows Phone Multitasking?

1 Answers  


Tell me are there canned mvvm "data behaviors" planned for wp7?

0 Answers  


Categories