3 writes to CurrentDpiScale
PresentationCore (3)
System\Windows\InterOp\HwndTarget.cs (3)
339CurrentDpiScale = GetDpiScaleForWindow(_hWnd); 1748CurrentDpiScale = newDpi; 1770CurrentDpiScale = newDpi;
18 references to CurrentDpiScale
PresentationCore (18)
System\Windows\Input\Stylus\Common\StylusLogic.cs (4)
407if (!_transformToDeviceMatrices.ContainsKey(hwndSource.CompositionTarget.CurrentDpiScale)) 409_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale] = hwndSource.CompositionTarget.TransformToDevice; 410Debug.Assert(_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale].HasInverse); 413toDevice = _transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale];
System\Windows\InterOp\HwndTarget.cs (14)
268CurrentDpiScale.DpiScaleX, 0, 2690 , CurrentDpiScale.DpiScaleY, 754CurrentDpiScale, 870var oldDpi = CurrentDpiScale; 903var oldDpi = CurrentDpiScale; 1746var oldDpi = CurrentDpiScale; 1768var oldDpi = CurrentDpiScale; 1796CurrentDpiScale, 2306DpiFlags dpiFlags = DpiUtil.UpdateDpiScalesAndGetIndex(CurrentDpiScale.PixelsPerInchX, CurrentDpiScale.PixelsPerInchY); 2333m.Scale(CurrentDpiScale.DpiScaleX, CurrentDpiScale.DpiScaleY); 2348m.Scale(1.0f/CurrentDpiScale.DpiScaleX, 1.0f/CurrentDpiScale.DpiScaleY);