DpiAwareness.GetDpiXScale(Visual) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the x-coordinate (or horizontal) DPI scale of the given Visual.
public:
[System::Runtime::CompilerServices::Extension]
static double GetDpiXScale(System::Windows::Media::Visual ^ visual);
public static double GetDpiXScale (this System.Windows.Media.Visual visual);
static member GetDpiXScale : System.Windows.Media.Visual -> double
<Extension()>
Public Function GetDpiXScale (visual As Visual) As Double
Parameters
Returns
The Visual's DPI scale.