HwndHost::OnDpiChanged Method (DpiScale, DpiScale)

 

Called when the DPI at which this HwndHost is rendered changes.

Namespace:   System.Windows.Interop
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected:
virtual void OnDpiChanged(
	DpiScale oldDpi,
	DpiScale newDpi
) override

Parameters

oldDpi
Type: System.Windows::DpiScale

The original DPI scale setting.

newDpi
Type: System.Windows::DpiScale

The new DPI scale setting.

.NET Framework
Available since 4.6.2
Return to top
Show: