Get Windows Phone Screen Size and Scale Factor

using System.Windows;  
public void GetScreenResolution()  
{  
     double w = Application.Current.Host.Content.ActualWidth;  
     double h = Application.Current.Host.Content.ActualHeight;  
     int scale = Application.Current.Host.Content.ScaleFactor;  
}

The following is an overview of the current characteristics of all these properties:
 WVGAHDWXGA
ActualWidth480480480
ActualHeight800853800
ScaleFactor (%)100150160
Resulting Size (Width/Height x Scale)480x800720x1280768x1280