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 detect the resolution of my device?

0 Answers  


Tell me is wcf supported in windows phone?

0 Answers  


In the emulator, networkinterface.getisnetworkavailable() always return false?

0 Answers  


How to play two mediaelements at once?

0 Answers  


How to customize front page?

0 Answers  






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

0 Answers  


How to pin an app on the emulator?

1 Answers  


Explain how to edit locations for local?

0 Answers  


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

0 Answers  


Explain how to dismiss the sip programmatically?

0 Answers  


Tell me can I open sockets in windows phone?

0 Answers  


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?

0 Answers  






Categories