4 instantiations of DpiScale2
PresentationCore (4)
MS\Internal\DpiScale2.cs (1)
207return new DpiScale2(ppiX / DpiUtil.DefaultPixelsPerInch, ppiY / DpiUtil.DefaultPixelsPerInch);
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (1)
69return new DpiScale2(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]);
System\Windows\InterOp\HwndTarget.cs (2)
1743var newDpi = new DpiScale2(e.NewDpi); 1765var newDpi = new DpiScale2(e.NewDpi);
62 references to DpiScale2
PresentationCore (60)
MS\Internal\DpiScale2.cs (19)
12internal class DpiScale2 : IEquatable<DpiScale2>, IEquatable<DpiScale> 17/// Initializes a new instance of the <see cref="DpiScale2"/> class. 26/// Initializes a new instance of the <see cref="DpiScale2"/> class. 76/// Implicitly casts a <see cref="DpiScale2"/> object to 79/// <param name="dpiScale2">The <see cref="DpiScale2"/> object that is 81public static implicit operator DpiScale(DpiScale2 dpiScale2) 87/// Checks to inequality between two <see cref="DpiScale2"/> instances. 92public static bool operator !=(DpiScale2 dpiScaleA, DpiScale2 dpiScaleB) 104/// Checks for equality between two <see cref="DpiScale2"/> instances. 109public static bool operator ==(DpiScale2 dpiScaleA, DpiScale2 dpiScaleB) 133/// Equality test against a <see cref="DpiScale2"/> object. 150public bool Equals(DpiScale2 dpiScale2) 173else if (obj is DpiScale2) 175areEqual = this.Equals((DpiScale2)obj); 195/// Creates an instances of <see cref="DpiScale2"/> from PPI values. 199/// <returns>A new <see cref="DpiScale2"/> instance</returns> 200internal static DpiScale2 FromPixelsPerInch(double ppiX, double ppiY)
MS\Internal\DpiUtil\DpiUtil.cs (6)
93internal static DpiScale2 GetSystemDpi() 102internal static DpiScale2 GetSystemDpiFromUIElementCache() 111internal static void UpdateUIElementCacheForSystemDpi(DpiScale2 systemDpiScale) 126internal static DpiScale2 GetWindowDpi(IntPtr hWnd, bool fallbackToNearestMonitorHeuristic) 133/// <see cref="DpiScale2"/>, and the screen-rectangle of the monitor where the <paramref name="hWnd"/> resides. 145/// <see cref="DpiScale2"/>, and the screen-rectangle of the monitor where the <paramref name="hWnd"/> resides.
MS\Internal\DpiUtil\DpiUtil+HwndDpiInfo.cs (4)
20public class HwndDpiInfo : Tuple<DpiAwarenessContextValue, DpiScale2> 36/// and <see cref="DpiScale2"/> information 40internal HwndDpiInfo(DpiAwarenessContextValue dpiAwarenessContextValue, DpiScale2 dpiScale) 86internal DpiScale2 DpiScale { get => Item2; }
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (7)
44internal static DpiScale2 GetSystemDpi() 65internal static DpiScale2 GetSystemDpiFromUIElementCache() 77internal static void UpdateUIElementCacheForSystemDpi(DpiScale2 systemDpiScale) 90private static DpiScale2 GetDpiForSystem() 93return DpiScale2.FromPixelsPerInch(dpi, dpi); 101private static DpiScale2 GetSystemDpiFromDeviceCaps() 115return DpiScale2.FromPixelsPerInch(ppiX, ppiY);
MS\Internal\DpiUtil\DpiUtil+WindowDpiScaleHelper.cs (5)
42internal static DpiScale2 GetWindowDpi(IntPtr hWnd, bool fallbackToNearestMonitorHeuristic) 78private static DpiScale2 GetDpiForWindow(IntPtr hWnd) 81return DpiScale2.FromPixelsPerInch(dpi, dpi); 89private static DpiScale2 GetDpiForWindowFromNearestMonitor(IntPtr hWnd) 100return DpiScale2.FromPixelsPerInch(dpiX, dpiY);
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
172private readonly Dictionary<DpiScale2, Matrix> _transformToDeviceMatrices = new Dictionary<DpiScale2, Matrix>();
System\Windows\InterOp\HwndTarget.cs (17)
404private static DpiScale2 GetDpiScaleForWindow(IntPtr hWnd) 406DpiScale2 dpiScale = null; 425dpiScale = DpiScale2.FromPixelsPerInch(DpiUtil.DefaultPixelsPerInch, DpiUtil.DefaultPixelsPerInch); 446dpiScale = DpiScale2.FromPixelsPerInch( 869var oldDpi = CurrentDpiScale; 870var newDpi = 871DpiScale2.FromPixelsPerInch( 902var oldDpi = CurrentDpiScale; 903var newDpi = GetDpiScaleForWindow(_hWnd); 1670private void UpdateWorldTransform(DpiScale2 dpiScale) 1701private void PropagateDpiChangeToRootVisual(DpiScale2 oldDpi, DpiScale2 newDpi) 1742var oldDpi = CurrentDpiScale; 1743var newDpi = new DpiScale2(e.NewDpi); 1764var oldDpi = CurrentDpiScale; 1765var newDpi = new DpiScale2(e.NewDpi); 2013internal DpiScale2 CurrentDpiScale { get; private set; }
PresentationFramework (2)
System\Windows\SystemResources.cs (2)
1040/// <param name="hwndDpiInfo">Represents a combination of <see cref="DpiAwarenessContextValue"/> and <see cref="DpiScale2"/></param> 1660/// List of {<see cref="DpiAwarenessContextValue"/> , <see cref="DpiScale2"/>} combinations for which notify-windows are being maintained