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