HwndSource.OnDpiChanged(HwndDpiChangedEventArgs) HwndSource.OnDpiChanged(HwndDpiChangedEventArgs) HwndSource.OnDpiChanged(HwndDpiChangedEventArgs) HwndSource.OnDpiChanged(HwndDpiChangedEventArgs) Method

Definition

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

protected:
 virtual void OnDpiChanged(System::Windows::HwndDpiChangedEventArgs ^ e);
[System.Security.SecurityCritical]
protected virtual void OnDpiChanged (System.Windows.HwndDpiChangedEventArgs e);
abstract member OnDpiChanged : System.Windows.HwndDpiChangedEventArgs -> unit
override this.OnDpiChanged : System.Windows.HwndDpiChangedEventArgs -> unit
Protected Overridable Sub OnDpiChanged (e As HwndDpiChangedEventArgs)

Parameters

Remarks

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

Important

This method accesses critical data HwndTarget.

Applies to