8 instantiations of DpiScale
PresentationCore (8)
MS\Internal\DpiScale2.cs (1)
33: this(new DpiScale(dpiScaleX, dpiScaleY))
System\Windows\DpiChangedEventArgs.cs (2)
50OldDpi = new DpiScale(oldDpiX / DpiUtil.DefaultPixelsPerInch, oldDpiY / DpiUtil.DefaultPixelsPerInch); 51NewDpi = new DpiScale(newDpiX / DpiUtil.DefaultPixelsPerInch, newDpiY / DpiUtil.DefaultPixelsPerInch);
System\Windows\InterOp\HwndTarget.cs (1)
2322DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
System\Windows\Media\Visual.cs (3)
4713dpi = new DpiScale(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 4721dpi = new DpiScale(UIElement.DpiScaleXValues[index], UIElement.DpiScaleYValues[index]); 4727dpi = new DpiScale(UIElement.DpiScaleXValues[actualIndex], UIElement.DpiScaleYValues[actualIndex]);
System\Windows\UIElement.cs (1)
1171return new DpiScale(_dpiScaleX, _dpiScaleY);
83 references to DpiScale
PresentationCore (40)
MS\Internal\DpiScale2.cs (11)
12/// Wrapper for <see cref="DpiScale"/> with supporting utility methods 14internal class DpiScale2 : IEquatable<DpiScale2>, IEquatable<DpiScale> 16private DpiScale dpiScale; 21/// <param name="dpiScale"><see cref="DpiScale"/> instance</param> 22internal DpiScale2(DpiScale dpiScale) 79/// a <see cref="DpiScale"/> object. 83public static implicit operator DpiScale(DpiScale2 dpiScale2) 123/// Equality test against a <see cref="DpiScale"/> object. 127public bool Equals(DpiScale dpiScale) 171if (obj is DpiScale) 173areEqual = this.Equals((DpiScale)obj);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
2194DpiScale dpiScale, 2282DpiScale dpiScale,
System\Windows\DpiChangedEventArgs.cs (16)
71internal HwndDpiChangedEventArgs(DpiScale oldDpi, DpiScale newDpi, Rect suggestedRect) : 82public DpiScale OldDpi { get; private set; } 87public DpiScale NewDpi { get; private set; } 112internal HwndDpiChangedAfterParentEventArgs(DpiScale oldDpi, DpiScale newDpi, Rect suggestedRect) 130internal DpiScale OldDpi { get; } 135internal DpiScale NewDpi { get; } 171internal DpiChangedEventArgs(DpiScale oldDpi, DpiScale newDpi, RoutedEvent routedEvent, object source) : base(routedEvent, source ) 180public DpiScale OldDpi { get; private set; } 185public DpiScale NewDpi { get; private set; } 193internal DpiRecursiveChangeArgs(DpiFlags dpiFlags, DpiScale oldDpiScale, 194DpiScale newDpiScale) 206internal DpiScale OldDpiScale { get; set; } 207internal DpiScale NewDpiScale { get; set; }
System\Windows\DpiScale.cs (1)
80internal bool Equals(DpiScale other) => _dpiScaleX == other._dpiScaleX && _dpiScaleY == other._dpiScaleY;
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
495DpiScale dpi = VisualTreeHelper.GetDpi(_stylusDevice.CriticalActiveSource.RootVisual);
System\Windows\InterOp\HwndTarget.cs (1)
2322DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
System\Windows\Media\Visual.cs (4)
4022DpiScale oldDpi, 4023DpiScale newDpi) 4701internal DpiScale GetDpi() 4703DpiScale dpi;
System\Windows\Media\VisualTreeHelper.cs (2)
103public static DpiScale GetDpi(Visual visual) 112public static void SetRootDpi(Visual visual, DpiScale dpiInfo)
System\Windows\UIElement.cs (2)
882DpiScale dpi = GetDpi(); 1138internal static DpiScale EnsureDpiScale()
PresentationFramework (41)
MS\Internal\Ink\EraserBehavior.cs (1)
308DpiScale dpi = this.InkCanvas.GetDpi();
MS\Internal\Ink\InkCollectionBehavior.cs (1)
367DpiScale dpi = this.InkCanvas.GetDpi();
MS\Internal\Text\ComplexLine.cs (1)
204DpiScale dpi = _owner.GetDpi();
System\Windows\Controls\Border.cs (3)
219DpiScale dpi = GetDpi(); 266DpiScale dpi = GetDpi(); 370DpiScale dpi = GetDpi();
System\Windows\Controls\FlowDocumentReader.cs (2)
763protected override void OnDpiChanged(DpiScale oldDpiScaleInfo, DpiScale newDpiScaleInfo)
System\Windows\Controls\Grid.cs (2)
2088DpiScale dpiScale = GetDpi(); 2662DpiScale dpiScale = GetDpi();
System\Windows\Controls\GridSplitter.cs (1)
872DpiScale dpi = GetDpi();
System\Windows\Controls\Image.cs (3)
196protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi) 224DpiScale dpiInfo = GetDpi();
System\Windows\Controls\Primitives\DocumentPageView.cs (2)
208protected override void OnDpiChanged(DpiScale oldDpiScaleInfo, DpiScale newDpiScaleInfo)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
389protected override void OnDpiChanged(DpiScale oldDpiScaleInfo, DpiScale newDpiScaleInfo)
System\Windows\Controls\RichTextBox.cs (2)
296protected override void OnDpiChanged(DpiScale oldDpiScaleInfo, DpiScale newDpiScaleInfo)
System\Windows\Controls\VirtualizingStackPanel.cs (4)
534DpiScale dpi = GetDpi(); 662DpiScale dpi = GetDpi(); 7809DpiScale dpi = GetDpi(); 12374DpiScale dpiScale = vsp.GetDpi();
System\Windows\Documents\FixedPageStructure.cs (2)
266DpiScale dpi = fp.GetDpi(); 464DpiScale dpi = fp.GetDpi();
System\Windows\Documents\FlowDocument.cs (1)
749public void SetDpi(DpiScale dpiInfo)
System\Windows\Documents\WpfPayload.cs (1)
422DpiScale dpi = image.GetDpi();
System\Windows\FrameworkElement.cs (3)
4310DpiScale dpi = GetDpi(); 4535DpiScale dpi = GetDpi(); 4887DpiScale dpi = GetDpi();
System\Windows\Interop\HwndHost.cs (2)
160protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi)
System\Windows\Shell\WindowChromeWorker.cs (5)
413DpiScale dpi = _window.GetDpi(); 485DpiScale dpi = _window.GetDpi(); 818DpiScale dpi = _window.GetDpi(); 962DpiScale dpi = _window.GetDpi(); 1081DpiScale dpi = _window.GetDpi();
System\Windows\SystemCommands.cs (1)
71DpiScale dpi = window.GetDpi();
System\Windows\Window.cs (2)
1779protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi)
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
247DpiScale dpi = GetDpi(); 279DpiScale dpi = GetDpi();