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 |
Explain how to restart or shutdown my application programmatically?
Tell me are there api's to read rss/atom feeds?
Can I turn off some of my local papers?
Are there apis to read rss/atom feeds?
How to manage my isolated storage quota?
Explain how to customize front page?
What is windows phone web browser?
Can we intercept the search button to do an app specific search?
Explain how to detect the resolution of my device?
Is asp.net forms authentication supported?
Is it temporary that the control styles are included in app.xaml?
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?