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

Suppose I am trying to receive toast notifications in emulator app. I got everything setup but notification does not show up in emulator at all?

0 Answers  


Explain how to save screen from an xna app?

0 Answers  


Tell me is there a way to know if my code is running on emulator or device?

0 Answers  


Can not find phoneapplicationpage.fullscreen in april ctp?

0 Answers  


Explain how to dismiss the sip programmatically?

0 Answers  






Suppose I have lost one of the application templates in visual studio 2010. It's available in the file system but not in visual studio... Any ideas?

0 Answers  


Tell me can I turn off some of my local papers?

1 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 detect if my application is exiting so I can save state?

1 Answers  


Tell me where is httputility class, since there is no system.windows.browser namespace?

0 Answers  


Can we control the web browser controls zoom?

0 Answers  


Explain how to send suggestions on how to better the app to the ap?

0 Answers  






Categories