Visual.OnDpiChanged(DpiScale, DpiScale) Visual.OnDpiChanged(DpiScale, DpiScale) Visual.OnDpiChanged(DpiScale, DpiScale) Visual.OnDpiChanged(DpiScale, DpiScale) Method

定義

當轉譯此 View 的 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 DpiScale DpiScale DpiScale

先前的 DPI 縮放比例設定。The previous DPI scale setting.

newDpi
DpiScale DpiScale DpiScale DpiScale

新的 DPI 縮放比例設定。The new DPI scale setting.

適用於