Windows Phone (WP) Question:

How to detect the resolution of my device?

Tweet Share WhatsApp

Answer:

(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.

Download Windows Phone PDF Read All 82 Windows Phone Questions
Previous QuestionNext Question
How to dismiss the SIP programmatically?Tell me what happened to TopLevelNavigationService, it is not there on April CTP Refresh?