use getScaledDPIValue() for WP8 C++ version