How to detect the resolution of my device?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I turn article photos off?

546


Can I reorder the tabs?

584


Explain how to pin an app on the emulator?

520


Tell me can I reorder the tabs?

518


Explain how to edit location for weather?

478






Tell me is there any internal page notification that it receives to detect a phone call?

497


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

584


Where is httputility class, since there is no system.windows.browser namespace?

596


Can we intercept the search button to do an app specific search?

477


Is securestring supported in windows phone?

579


Tell me can I open sockets in windows phone?

513


Explain about windows phone user interface?

605


What is safety mode on my phone?

468


Explain about windows phone bluetooth?

591


Tell me is securestring supported in windows phone?

527