adspace


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

Explain how to save screen from an xna app?

1040


Explain how to edit location for weather?

968


Explain how to play video in isolatedstorage using mediaelement?

939