HwndSource.OnDpiChanged(HwndDpiChangedEventArgs) Method

Definition

Called when the DPI is going to change for the window.

C#
[System.Security.SecurityCritical]
protected virtual void OnDpiChanged(System.Windows.HwndDpiChangedEventArgs e);
C#
protected virtual void OnDpiChanged(System.Windows.HwndDpiChangedEventArgs e);

Parameters

e
HwndDpiChangedEventArgs

The event arguments.

Attributes

Remarks

If the user handles this event, WPF does not scale any visuals.

Important

This method accesses critical data HwndTarget.

Applies to

Product Versions
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10