3 writes to CurrentDpiScale
PresentationCore (3)
System\Windows\InterOp\HwndTarget.cs (3)
341CurrentDpiScale = GetDpiScaleForWindow(_hWnd); 1752CurrentDpiScale = newDpi; 1774CurrentDpiScale = 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)
270CurrentDpiScale.DpiScaleX, 0, 2710 , CurrentDpiScale.DpiScaleY, 756CurrentDpiScale, 872var oldDpi = CurrentDpiScale; 905var oldDpi = CurrentDpiScale; 1750var oldDpi = CurrentDpiScale; 1772var oldDpi = CurrentDpiScale; 1800CurrentDpiScale, 2308DpiFlags dpiFlags = DpiUtil.UpdateDpiScalesAndGetIndex(CurrentDpiScale.PixelsPerInchX, CurrentDpiScale.PixelsPerInchY); 2335m.Scale(CurrentDpiScale.DpiScaleX, CurrentDpiScale.DpiScaleY); 2350m.Scale(1.0f/CurrentDpiScale.DpiScaleX, 1.0f/CurrentDpiScale.DpiScaleY);