8 instantiations of DpiScale
PresentationCore (8)
MS\Internal\DpiScale2.cs (1)
32: this(new DpiScale(dpiScaleX, dpiScaleY))
System\Windows\DpiChangedEventArgs.cs (2)
47OldDpi = new DpiScale(oldDpiX / DpiUtil.DefaultPixelsPerInch, oldDpiY / DpiUtil.DefaultPixelsPerInch); 48NewDpi = new DpiScale(newDpiX / DpiUtil.DefaultPixelsPerInch, newDpiY / DpiUtil.DefaultPixelsPerInch);
System\Windows\InterOp\HwndTarget.cs (1)
2309DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
System\Windows\Media\Visual.cs (3)
4697dpi = new DpiScale(UIElement.DpiScaleXValues[0], UIElement.DpiScaleYValues[0]); 4705dpi = new DpiScale(UIElement.DpiScaleXValues[index], UIElement.DpiScaleYValues[index]); 4711dpi = new DpiScale(UIElement.DpiScaleXValues[actualIndex], UIElement.DpiScaleYValues[actualIndex]);
System\Windows\UIElement.cs (1)
1166return new DpiScale(_dpiScaleX, _dpiScaleY);
83 references to DpiScale
PresentationCore (40)
MS\Internal\DpiScale2.cs (11)
11/// Wrapper for <see cref="DpiScale"/> with supporting utility methods 13internal class DpiScale2 : IEquatable<DpiScale2>, IEquatable<DpiScale> 15private DpiScale dpiScale; 20/// <param name="dpiScale"><see cref="DpiScale"/> instance</param> 21internal DpiScale2(DpiScale dpiScale) 78/// a <see cref="DpiScale"/> object. 82public static implicit operator DpiScale(DpiScale2 dpiScale2) 122/// Equality test against a <see cref="DpiScale"/> object. 126public bool Equals(DpiScale dpiScale) 170if (obj is DpiScale) 172areEqual = this.Equals((DpiScale)obj);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
2177DpiScale dpiScale, 2265DpiScale dpiScale,
System\Windows\DpiChangedEventArgs.cs (16)
68internal HwndDpiChangedEventArgs(DpiScale oldDpi, DpiScale newDpi, Rect suggestedRect) : 79public DpiScale OldDpi { get; private set; } 84public DpiScale NewDpi { get; private set; } 109internal HwndDpiChangedAfterParentEventArgs(DpiScale oldDpi, DpiScale newDpi, Rect suggestedRect) 127internal DpiScale OldDpi { get; } 132internal DpiScale NewDpi { get; } 168internal DpiChangedEventArgs(DpiScale oldDpi, DpiScale newDpi, RoutedEvent routedEvent, object source) : base(routedEvent, source ) 177public DpiScale OldDpi { get; private set; } 182public DpiScale NewDpi { get; private set; } 190internal DpiRecursiveChangeArgs(DpiFlags dpiFlags, DpiScale oldDpiScale, 191DpiScale newDpiScale) 203internal DpiScale OldDpiScale { get; set; } 204internal DpiScale NewDpiScale { get; set; }
System\Windows\DpiScale.cs (1)
79internal bool Equals(DpiScale other) => _dpiScaleX == other._dpiScaleX && _dpiScaleY == other._dpiScaleY;
System\Windows\Input\Stylus\Pointer\PointerInteractionEngine.cs (1)
479DpiScale dpi = VisualTreeHelper.GetDpi(_stylusDevice.CriticalActiveSource.RootVisual);
System\Windows\InterOp\HwndTarget.cs (1)
2309DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
System\Windows\Media\Visual.cs (4)
4006DpiScale oldDpi, 4007DpiScale newDpi) 4685internal DpiScale GetDpi() 4687DpiScale dpi;
System\Windows\Media\VisualTreeHelper.cs (2)
94public static DpiScale GetDpi(Visual visual) 103public static void SetRootDpi(Visual visual, DpiScale dpiInfo)
System\Windows\UIElement.cs (2)
877DpiScale dpi = GetDpi(); 1133internal static DpiScale EnsureDpiScale()
PresentationFramework (41)
MS\Internal\Ink\EraserBehavior.cs (1)
296DpiScale dpi = this.InkCanvas.GetDpi();
MS\Internal\Ink\InkCollectionBehavior.cs (1)
358DpiScale dpi = this.InkCanvas.GetDpi();
MS\Internal\Text\ComplexLine.cs (1)
199DpiScale dpi = _owner.GetDpi();
System\Windows\Controls\Border.cs (3)
215DpiScale dpi = GetDpi(); 262DpiScale dpi = GetDpi(); 366DpiScale dpi = GetDpi();
System\Windows\Controls\FlowDocumentReader.cs (2)
758protected override void OnDpiChanged(DpiScale oldDpiScaleInfo, DpiScale newDpiScaleInfo)
System\Windows\Controls\Grid.cs (2)
2079DpiScale dpiScale = GetDpi(); 2653DpiScale dpiScale = GetDpi();
System\Windows\Controls\GridSplitter.cs (1)
866DpiScale dpi = GetDpi();
System\Windows\Controls\Image.cs (3)
188protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi) 216DpiScale dpiInfo = GetDpi();
System\Windows\Controls\Primitives\DocumentPageView.cs (2)
204protected override void OnDpiChanged(DpiScale oldDpiScaleInfo, DpiScale newDpiScaleInfo)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
384protected override void OnDpiChanged(DpiScale oldDpiScaleInfo, DpiScale newDpiScaleInfo)
System\Windows\Controls\RichTextBox.cs (2)
292protected override void OnDpiChanged(DpiScale oldDpiScaleInfo, DpiScale newDpiScaleInfo)
System\Windows\Controls\VirtualizingStackPanel.cs (4)
529DpiScale dpi = GetDpi(); 657DpiScale dpi = GetDpi(); 7804DpiScale dpi = GetDpi(); 12369DpiScale dpiScale = vsp.GetDpi();
System\Windows\Documents\FixedPageStructure.cs (2)
260DpiScale dpi = fp.GetDpi(); 458DpiScale dpi = fp.GetDpi();
System\Windows\Documents\FlowDocument.cs (1)
749public void SetDpi(DpiScale dpiInfo)
System\Windows\Documents\WpfPayload.cs (1)
416DpiScale dpi = image.GetDpi();
System\Windows\FrameworkElement.cs (3)
4299DpiScale dpi = GetDpi(); 4524DpiScale dpi = GetDpi(); 4876DpiScale dpi = GetDpi();
System\Windows\Interop\HwndHost.cs (2)
158protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi)
System\Windows\Shell\WindowChromeWorker.cs (5)
408DpiScale dpi = _window.GetDpi(); 480DpiScale dpi = _window.GetDpi(); 813DpiScale dpi = _window.GetDpi(); 957DpiScale dpi = _window.GetDpi(); 1076DpiScale dpi = _window.GetDpi();
System\Windows\SystemCommands.cs (1)
69DpiScale dpi = window.GetDpi();
System\Windows\Window.cs (2)
1766protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi)
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHost.cs (2)
245DpiScale dpi = GetDpi(); 277DpiScale dpi = GetDpi();