Visual.OnDpiChanged Method (DpiScale, DpiScale)

 

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

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

protected virtual void OnDpiChanged(
	DpiScale oldDpi,
	DpiScale newDpi
)

Parameters

oldDpi
Type: System.Windows.DpiScale

The previous DPI scale setting.

newDpi
Type: System.Windows.DpiScale

The new DPI scale setting.

.NET Framework
Available since 4.6.2
Return to top
Show: