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 |
Tell me are there canned mvvm "data behaviors" planned for wp7?
Suppose I am trying to detect if an external headset is attached to the phone, can I use microsoft.xna.framework.audio.microphone.isheadset?
Is it possible to use custom pixel shader in xna?
Tell me where is the best recommended place to store both static and user-specified configuration information?
Is securestring supported in windows phone?
Explain about the windows phone?
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?
Explain how to edit locations for local?
Tell me can I get weather for my location?
Is it temporary that the control styles are included in app.xaml?
explain the best way to detect that I am in design-mode in expression blend or visual studio?
Tell me is it temporary that the control styles are included in App.xaml?