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
explain the best way to detect that I am in design-mode in expression blend or visual studio?
Explain how the volume work between apps and hardware buttons on the device?
Explain how to manage my isolated storage quota?
What is windows phone bluetooth?
Explain how to detect if my application is exiting so I can save state?
Is it temporary that the control styles are included in app.xaml?
Is .bmp format supported?
Tell me are there api's to read rss/atom feeds?
What are the supported codecs for video?
What is the windows phone front page?
is there a way to know if my code is running on emulator or device?
Is it possible to run two instances of emulator on the same machine. I am doing some networking app and need two emulators to test it?
What is windows phone media support?
Is it possible to use custom pixel shader in xna?
Tell me is there a way to detect if application is idle?