How to detect the resolution of my device?
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 |
In the emulator, networkinterface.getisnetworkavailable() always return false?
Explain how to pin an app on the emulator?
Tell me is securestring supported in windows phone?
How to show the sip keyboard in xna app?
is there a way to detect if application is idle?
Explain how to identify a device or a user?
Will texttrimming property be available on textblock?
Explain starting with april ctp refresh, I can compile and debug my xna game, but it does not show up in list of applications when I am not launching it on thedebugger?
Explain how to detect the resolution of my device?
Is it temporary that the control styles are included in app.xaml?
Tell me can I turn off some of my local papers?
I see applications using listbox that show scrollbar only on while scrolling. How can I detect that I am scrolling?