Answer / 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|
Suppose I am trying to receive toast notifications in emulator app. I got everything setup but notification does not show up in emulator at all?
Explain how to save screen from an xna app?
Tell me is there a way to know if my code is running on emulator or device?
Can not find phoneapplicationpage.fullscreen in april ctp?
Explain how to dismiss the sip programmatically?
Suppose I have lost one of the application templates in visual studio 2010. It's available in the file system but not in visual studio... Any ideas?
Tell me can I turn off some of my local papers?
Can you please explain the best way to detect that I am in design-mode in expression blend or visual studio?
How to detect if my application is exiting so I can save state?
Tell me where is httputility class, since there is no system.windows.browser namespace?
Can we control the web browser controls zoom?
Explain how to send suggestions on how to better the app to the ap?