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