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

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

0 Answers  


Suppose I am trying to detect if an external headset is attached to the phone, can I use microsoft.xna.framework.audio.microphone.isheadset?

0 Answers  


Is it possible to use custom pixel shader in xna?

0 Answers  


Tell me where is the best recommended place to store both static and user-specified configuration information?

0 Answers  


Is securestring supported in windows phone?

0 Answers  






Explain about the windows phone?

0 Answers  


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?

0 Answers  


Explain how to edit locations for local?

0 Answers  


Tell me can I get weather for my location?

1 Answers  


Is it temporary that the control styles are included in app.xaml?

0 Answers  


explain the best way to detect that I am in design-mode in expression blend or visual studio?

0 Answers  


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

1 Answers  


Categories