41 references to DpiUtil
PresentationCore (37)
MS\Internal\DpiScale2.cs (2)
209
return new DpiScale2(ppiX /
DpiUtil
.DefaultPixelsPerInch, ppiY /
DpiUtil
.DefaultPixelsPerInch);
MS\Internal\DpiUtil\DpiUtil.cs (4)
188
if (UIElement.DpiScaleXValues[index] == pixelsPerInchX /
DpiUtil
.DefaultPixelsPerInch &&
189
UIElement.DpiScaleYValues[index] == pixelsPerInchY /
DpiUtil
.DefaultPixelsPerInch)
198
UIElement.DpiScaleXValues.Add(pixelsPerInchX /
DpiUtil
.DefaultPixelsPerInch);
199
UIElement.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>
31
item1: (DpiAwarenessContextValue)
DpiUtil
.GetDpiAwarenessContext(hWnd),
32
item2:
DpiUtil
.GetWindowDpi(hWnd, fallbackToNearestMonitorHeuristic))
System\Windows\DpiChangedEventArgs.cs (4)
50
OldDpi = new DpiScale(oldDpiX /
DpiUtil
.DefaultPixelsPerInch, oldDpiY /
DpiUtil
.DefaultPixelsPerInch);
51
NewDpi = new DpiScale(newDpiX /
DpiUtil
.DefaultPixelsPerInch, newDpiY /
DpiUtil
.DefaultPixelsPerInch);
System\Windows\DpiScale.cs (2)
66
get { return
DpiUtil
.DefaultPixelsPerInch * _dpiScaleX; }
77
get { return
DpiUtil
.DefaultPixelsPerInch * _dpiScaleY; }
System\Windows\Input\Stylus\Pointer\PointerTouchDevice.cs (1)
79
double pixelsPerInch =
DpiUtil
.DefaultPixelsPerInch;
System\Windows\Input\Stylus\Wisp\WispStylusTouchDevice.cs (1)
46
double pixelsPerInch =
DpiUtil
.DefaultPixelsPerInch;
System\Windows\InterOp\HwndTarget.cs (17)
347
DpiUtil
.UpdateUIElementCacheForSystemDpi(
DpiUtil
.GetSystemDpi());
353
DpiAwarenessContext = (DpiAwarenessContextValue)
DpiUtil
.GetDpiAwarenessContext(_hWnd);
379
appManifestProcessDpiAwareness =
DpiUtil
.GetProcessDpiAwareness(hWnd);
390
processDpiAwareness =
DpiUtil
.GetLegacyProcessDpiAwareness();
431
dpiScale =
DpiUtil
.GetWindowDpi(hWnd, fallbackToNearestMonitorHeuristic: false);
437
dpiScale =
DpiUtil
.GetSystemDpiFromUIElementCache();
441
dpiScale = DpiScale2.FromPixelsPerInch(
DpiUtil
.DefaultPixelsPerInch,
DpiUtil
.DefaultPixelsPerInch);
449
var dpiAwareness =
DpiUtil
.GetLegacyProcessDpiAwareness();
453
dpiScale =
DpiUtil
.GetSystemDpi();
457
?
DpiUtil
.GetWindowDpi(hWnd, fallbackToNearestMonitorHeuristic: false)
458
:
DpiUtil
.GetSystemDpi();
463
DpiUtil
.DefaultPixelsPerInch,
464
DpiUtil
.DefaultPixelsPerInch);
1726
var dpiFlags =
DpiUtil
.UpdateDpiScalesAndGetIndex(newDpi.PixelsPerInchX, newDpi.PixelsPerInchY);
2321
DpiFlags dpiFlags =
DpiUtil
.UpdateDpiScalesAndGetIndex(CurrentDpiScale.PixelsPerInchX, CurrentDpiScale.PixelsPerInchY);
System\Windows\Media\VisualTreeHelper.cs (1)
122
DpiFlags 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>