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
Can I turn article photos off?
Can I reorder the tabs?
Explain how to pin an app on the emulator?
Tell me can I reorder the tabs?
Explain how to edit location for weather?
Tell me is there any internal page notification that it receives to detect a phone call?
is there a way to know if my code is running on emulator or device?
Where is httputility class, since there is no system.windows.browser namespace?
Can we intercept the search button to do an app specific search?
Is securestring supported in windows phone?
Tell me can I open sockets in windows phone?
Explain about windows phone user interface?
What is safety mode on my phone?
Explain about windows phone bluetooth?
Tell me is securestring supported in windows phone?