1.

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.

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



Discussion

No Comment Found