Windows Phone (WP) Question:
Download Job Interview Questions and Answers PDF
How to detect the resolution of my device?
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.
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 Interview Questions And Answers
PDF
Previous Question | Next Question |
How to dismiss the SIP programmatically? | Tell me what happened to TopLevelNavigationService, it is not there on April CTP Refresh? |