Visual.OnDpiChanged(DpiScale, DpiScale) 方法

定义

呈现此视图时所使用的 DPI 发生变化时进行调用。Called when the DPI at which this View is rendered changes.

protected:
 virtual void OnDpiChanged(System::Windows::DpiScale oldDpi, System::Windows::DpiScale newDpi);
protected virtual void OnDpiChanged (System.Windows.DpiScale oldDpi, System.Windows.DpiScale newDpi);
abstract member OnDpiChanged : System.Windows.DpiScale * System.Windows.DpiScale -> unit
override this.OnDpiChanged : System.Windows.DpiScale * System.Windows.DpiScale -> unit
Protected Overridable Sub OnDpiChanged (oldDpi As DpiScale, newDpi As DpiScale)

参数

oldDpi
DpiScale

上一 DPI 比例设置。The previous DPI scale setting.

newDpi
DpiScale

新 DPI 比例设置。The new DPI scale setting.

适用于