Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to detect the resolution of my device?

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


Please Help Members By Posting Answers For Below Questions

Explain how to edit locations for local?

975


Explain how to manage my isolated storage quota?

953


How to play two mediaelements at once?

905


Explain how to change language settings?

878


What is windows phone bluetooth?

1060


I looked through the medialibrary class in xna, and it looks like we can only enumerate through audio, but not video content in the media library?

861


Tell me is there a way to detect if application is idle?

819


Is asp.net forms authentication supported?

957


Can we intercept the search button to do an app specific search?

835


Why did my phone go into safe mode?

889


How do you know you have a virus on your phone?

897


What is windows phone user interface?

978


Can I use my phone as a boot device?

923


Tell me can I write multi-player games using wi-fi or blue tooth in the device.?

870


Explain how to send suggestions on how to better the app to the ap?

842