HwndHost.OnDpiChanged(DpiScale, DpiScale) HwndHost.OnDpiChanged(DpiScale, DpiScale) HwndHost.OnDpiChanged(DpiScale, DpiScale) HwndHost.OnDpiChanged(DpiScale, DpiScale) Method

定義

當轉譯此 HwndHost 的 DPI 變更時呼叫。Called when the DPI at which this HwndHost is rendered changes.

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

參數

oldDpi
DpiScale DpiScale DpiScale DpiScale

原始 DPI 縮放比例設定。The original DPI scale setting.

newDpi
DpiScale DpiScale DpiScale DpiScale

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

適用於