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:
WVGA | HD | WXGA | |
ActualWidth | 480 | 480 | 480 |
ActualHeight | 800 | 853 | 800 |
ScaleFactor (%) | 100 | 150 | 160 |
Resulting Size (Width/Height x Scale) | 480x800 | 720x1280 | 768x1280 |