41 references to DpiUtil
PresentationCore (37)
MS\Internal\DpiScale2.cs (2)
209return new DpiScale2(ppiX / DpiUtil.DefaultPixelsPerInch, ppiY / DpiUtil.DefaultPixelsPerInch);
MS\Internal\DpiUtil\DpiUtil.cs (4)
188if (UIElement.DpiScaleXValues[index] == pixelsPerInchX / DpiUtil.DefaultPixelsPerInch && 189UIElement.DpiScaleYValues[index] == pixelsPerInchY / DpiUtil.DefaultPixelsPerInch) 198UIElement.DpiScaleXValues.Add(pixelsPerInchX / DpiUtil.DefaultPixelsPerInch); 199UIElement.DpiScaleYValues.Add(pixelsPerInchY / DpiUtil.DefaultPixelsPerInch);
MS\Internal\DpiUtil\DpiUtil+HwndDpiInfo.cs (3)
29/// <param name="fallbackToNearestMonitorHeuristic">Semantics of this parameter are identical to that in <see cref="DpiUtil.GetWindowDpi"/></param> 31item1: (DpiAwarenessContextValue)DpiUtil.GetDpiAwarenessContext(hWnd), 32item2: DpiUtil.GetWindowDpi(hWnd, fallbackToNearestMonitorHeuristic))
System\Windows\DpiChangedEventArgs.cs (4)
50OldDpi = new DpiScale(oldDpiX / DpiUtil.DefaultPixelsPerInch, oldDpiY / DpiUtil.DefaultPixelsPerInch); 51NewDpi = new DpiScale(newDpiX / DpiUtil.DefaultPixelsPerInch, newDpiY / DpiUtil.DefaultPixelsPerInch);
System\Windows\DpiScale.cs (2)
66get { return DpiUtil.DefaultPixelsPerInch * _dpiScaleX; } 77get { return DpiUtil.DefaultPixelsPerInch * _dpiScaleY; }
System\Windows\Input\Stylus\Pointer\PointerTouchDevice.cs (1)
79double pixelsPerInch = DpiUtil.DefaultPixelsPerInch;
System\Windows\Input\Stylus\Wisp\WispStylusTouchDevice.cs (1)
46double pixelsPerInch = DpiUtil.DefaultPixelsPerInch;
System\Windows\InterOp\HwndTarget.cs (17)
347DpiUtil.UpdateUIElementCacheForSystemDpi(DpiUtil.GetSystemDpi()); 353DpiAwarenessContext = (DpiAwarenessContextValue)DpiUtil.GetDpiAwarenessContext(_hWnd); 379appManifestProcessDpiAwareness = DpiUtil.GetProcessDpiAwareness(hWnd); 390processDpiAwareness = DpiUtil.GetLegacyProcessDpiAwareness(); 431dpiScale = DpiUtil.GetWindowDpi(hWnd, fallbackToNearestMonitorHeuristic: false); 437dpiScale = DpiUtil.GetSystemDpiFromUIElementCache(); 441dpiScale = DpiScale2.FromPixelsPerInch(DpiUtil.DefaultPixelsPerInch, DpiUtil.DefaultPixelsPerInch); 449var dpiAwareness = DpiUtil.GetLegacyProcessDpiAwareness(); 453dpiScale = DpiUtil.GetSystemDpi(); 457? DpiUtil.GetWindowDpi(hWnd, fallbackToNearestMonitorHeuristic: false) 458: DpiUtil.GetSystemDpi(); 463DpiUtil.DefaultPixelsPerInch, 464DpiUtil.DefaultPixelsPerInch); 1726var dpiFlags = DpiUtil.UpdateDpiScalesAndGetIndex(newDpi.PixelsPerInchX, newDpi.PixelsPerInchY); 2321DpiFlags dpiFlags = DpiUtil.UpdateDpiScalesAndGetIndex(CurrentDpiScale.PixelsPerInchX, CurrentDpiScale.PixelsPerInchY);
System\Windows\Media\VisualTreeHelper.cs (1)
122DpiFlags dpiFlags = DpiUtil.UpdateDpiScalesAndGetIndex(dpiInfo.PixelsPerInchX, dpiInfo.PixelsPerInchY);
System\Windows\UIElement.cs (2)
1163_dpiScaleX = (double)dpiX / DpiUtil.DefaultPixelsPerInch; 1164_dpiScaleY = (double)dpiY / DpiUtil.DefaultPixelsPerInch;
PresentationFramework (4)
System\Windows\SystemResources.cs (4)
1027/// on-demand by <see cref="EnsureResourceChangeListener(DpiUtil.HwndDpiInfo)"/> 1033/// of <see cref="DpiAwarenessContextValue"/> + DPI that is observed - i.e., for each unique <see cref="DpiUtil.HwndDpiInfo"/>. This 1105/// must only be called by <see cref="EnsureResourceChangeListener"/> or <see cref="EnsureResourceChangeListener(DpiUtil.HwndDpiInfo)"/> 1107/// <returns><see cref="DpiUtil.HwndDpiInfo"/> of the newly created <see cref="HwndWrapper"/>, which is also a new key added into <see cref="_hwndNotify"/></returns>