top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Windows Phone 8.1:How to get screen resolutions?

+2 votes
279 views
Windows Phone 8.1:How to get screen resolutions?
posted Jun 8, 2015 by Sathish Kumar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Previously in windowsphone 8.0,to determine screen resolutions we are using the "App.Current.Host.Content.ScaleFactor" .

But now its not working in windowsphone 8.1,So this post is explained about what is the alternative way for detecting screen resolutions in windowsphone store 8.1.

var scaleFactor = DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;
string currentresolution = Window.Current.Bounds.Width * scaleFactor + "*" + 
Window.Current.Bounds.Height * scaleFactor;
MessageDialog messageDialog = new MessageDialog(currentresolution);
await messageDialog.ShowAsync();
answer Jun 9, 2015 by Jdk
Similar Questions
+2 votes

I need XAP File for put my own application in my windows phone local store but i dont know where the XAP file placed in my application...........

+5 votes

Hi Now i have an code in windows phone OS 7.1 i need to update the OS to 8.0 is there any possible to update the OS...

+1 vote

How to use windows phone default date picker control......

+1 vote

I am using Visual Studio 2013 for developing windows phone application how to test my application any one explain how can i achieve this... thanks in advance:)

+1 vote

I need complete code for sending mail(compose mail) from my windows phone application any one help how to achieve this........

...