How to detect the resolution of my device?



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

Post New Answer

More Windows Phone OS Interview Questions

Suppose I am hitting System.InvalidOperationException in the Navigate method of the WebBrowserControl. What gives?

1 Answers  


How to show the sip keyboard in xna app?

1 Answers  


Explain how to save silverlight uielements into an image?

1 Answers  


What is windows phone bluetooth?

1 Answers  


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?

1 Answers  


Tell me about the Windows Phone?

1 Answers  


Tell me is it possible to use custom pixel shader in xna?

1 Answers  


is there an api for retrieving information on the files located in the store? I am looking to check when it was last written?

1 Answers  


Is there any internal page notification that it receives to detect a phone call?

1 Answers  


Explain how to sniff network traffic from the emulator?

1 Answers  


Tell me is there an api for retrieving information on the files located in the store? I am looking to check when it was last written?

1 Answers  


How to enable/disable alerts?

1 Answers  


Categories