3 writes to CurrentDpiScale
PresentationCore (3)
System\Windows\InterOp\HwndTarget.cs (3)
354CurrentDpiScale = GetDpiScaleForWindow(_hWnd); 1765CurrentDpiScale = newDpi; 1787CurrentDpiScale = newDpi;
18 references to CurrentDpiScale
PresentationCore (18)
System\Windows\Input\Stylus\Common\StylusLogic.cs (4)
417if (!_transformToDeviceMatrices.ContainsKey(hwndSource.CompositionTarget.CurrentDpiScale)) 419_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale] = hwndSource.CompositionTarget.TransformToDevice; 420Debug.Assert(_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale].HasInverse); 423toDevice = _transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale];
System\Windows\InterOp\HwndTarget.cs (14)
283CurrentDpiScale.DpiScaleX, 0, 2840 , CurrentDpiScale.DpiScaleY, 769CurrentDpiScale, 885var oldDpi = CurrentDpiScale; 918var oldDpi = CurrentDpiScale; 1763var oldDpi = CurrentDpiScale; 1785var oldDpi = CurrentDpiScale; 1813CurrentDpiScale, 2321DpiFlags dpiFlags = DpiUtil.UpdateDpiScalesAndGetIndex(CurrentDpiScale.PixelsPerInchX, CurrentDpiScale.PixelsPerInchY); 2348m.Scale(CurrentDpiScale.DpiScaleX, CurrentDpiScale.DpiScaleY); 2363m.Scale(1.0f/CurrentDpiScale.DpiScaleX, 1.0f/CurrentDpiScale.DpiScaleY);