70 references to DpiScaleY
PresentationCore (7)
MS\Internal\DpiScale2.cs (2)
49
get { return this.dpiScale.
DpiScaleY
; }
130
DoubleUtil.AreClose(this.DpiScaleY, dpiScale.
DpiScaleY
);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
2251
command.DpiY = dpiScale.
DpiScaleY
;
2275
command.DpiY = dpiScale.
DpiScaleY
;
System\Windows\DpiScale.cs (2)
31
/// On Windows Desktop, this value is the same as <see cref="
DpiScaleY
"/>
39
/// Gets the DPI scale on the Y axis. When DPI is 96, <see cref="
DpiScaleY
"/> is 1.
System\Windows\UIElement.cs (1)
874
finalRect = RoundLayoutRect(finalRect, dpi.DpiScaleX, dpi.
DpiScaleY
);
PresentationFramework (59)
MS\Internal\Documents\TextBoxView.cs (1)
282
result = RoundLayoutValue(result, GetDpi().
DpiScaleY
);
MS\Internal\Ink\EraserBehavior.cs (1)
296
_cachedPointEraserCursor = PenCursorManager.GetPointEraserCursor(_cachedStylusShape, xf, dpi.DpiScaleX, dpi.
DpiScaleY
);
MS\Internal\Ink\InkCollectionBehavior.cs (1)
358
_cachedPenCursor = PenCursorManager.GetPenCursor(da, false, (this.InkCanvas.FlowDirection == FlowDirection.RightToLeft), dpi.DpiScaleX, dpi.
DpiScaleY
);
MS\Internal\Text\ComplexLine.cs (1)
201
UIElement.RoundLayoutValue(lineOffset.Y + rect.Top, dpi.
DpiScaleY
));
System\Windows\Controls\Border.cs (9)
216
borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.
DpiScaleY
),
217
UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.
DpiScaleY
));
263
borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.
DpiScaleY
),
264
UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.
DpiScaleY
));
511
pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.
DpiScaleY
);
544
pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.
DpiScaleY
);
577
UIElement.RoundLayoutValue(border.Top, dpi.
DpiScaleY
));
582
UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.
DpiScaleY
));
587
RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.
DpiScaleY
));
System\Windows\Controls\Grid.cs (2)
2073
dpi = columns ? dpiScale.DpiScaleX : dpiScale.
DpiScaleY
;
2647
double dpi = columns ? dpiScale.DpiScaleX : dpiScale.
DpiScaleY
;
System\Windows\Controls\GridSplitter.cs (1)
893
delta = UIElement.RoundLayoutValue(delta, dpi.
DpiScaleY
);
System\Windows\Controls\TextBlock.cs (1)
3214
width += 0.5 / (GetDpi().
DpiScaleY
);
System\Windows\Controls\TextBox.cs (1)
1886
lineHeight = fontFamily.GetLineSpacingForDisplayMode(fontSize, GetDpi().
DpiScaleY
);
System\Windows\Controls\VirtualizingStackPanel.cs (5)
661
_scrollData._offset.Y = UIElement.RoundLayoutValue(_scrollData._offset.Y, dpi.
DpiScaleY
);
662
_scrollData._computedOffset.Y = UIElement.RoundLayoutValue(_scrollData._computedOffset.Y, dpi.
DpiScaleY
);
7784
double dpiScale = isHorizontal ? dpi.DpiScaleX : dpi.
DpiScaleY
;
12346
"DPIScale:", dpiScale.DpiScaleX, dpiScale.
DpiScaleY
,
12348
"Rounding Quantum:", 1.0/dpiScale.
DpiScaleY
);
System\Windows\Documents\WpfPayload.cs (1)
420
RenderTargetBitmap rtb = new RenderTargetBitmap((int)(di.Width * dpi.DpiScaleX), (int)(di.Height * dpi.
DpiScaleY
),
System\Windows\FrameworkElement.cs (21)
4322
marginHeight = RoundLayoutValue(marginHeight, dpi.
DpiScaleY
);
4334
mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.
DpiScaleY
);
4336
mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.
DpiScaleY
);
4382
frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.DpiScaleX, dpi.
DpiScaleY
);
4464
clippedDesiredHeight = UIElement.RoundLayoutValue(clippedDesiredHeight, dpi.
DpiScaleY
);
4564
marginHeight = UIElement.RoundLayoutValue(marginHeight, dpi.
DpiScaleY
);
4671
mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.
DpiScaleY
);
4673
mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.
DpiScaleY
);
4697
arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.DpiScaleX, dpi.
DpiScaleY
);
4710
RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.
DpiScaleY
);
4723
clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.
DpiScaleY
);
4740
clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.
DpiScaleY
);
4756
clientSize = UIElement.RoundLayoutSize(clientSize, dpi.DpiScaleX, dpi.
DpiScaleY
);
4773
offset.Y = UIElement.RoundLayoutValue(offset.Y, dpi.
DpiScaleY
);
4884
mm.maxHeight = UIElement.RoundLayoutValue(mm.maxHeight, dpi.
DpiScaleY
);
4886
mm.minHeight = UIElement.RoundLayoutValue(mm.minHeight, dpi.
DpiScaleY
);
4937
clipRect = UIElement.RoundLayoutRect(clipRect, dpi.DpiScaleX, dpi.
DpiScaleY
);
4958
slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.DpiScaleX, dpi.
DpiScaleY
);
4975
localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.DpiScaleX, dpi.
DpiScaleY
);
5004
slotRect = UIElement.RoundLayoutRect(slotRect, dpi.DpiScaleX, dpi.
DpiScaleY
);
5013
localRect = UIElement.RoundLayoutRect(localRect, dpi.DpiScaleX, dpi.
DpiScaleY
);
System\Windows\Shell\WindowChromeWorker.cs (13)
410
Thickness windowResizeBorderThicknessDevice = DpiHelper.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.
DpiScaleY
);
488
mousePosWindow = DpiHelper.DevicePixelsToLogical(mousePosWindow, dpi.DpiScaleX, dpi.
DpiScaleY
);
528
DpiHelper.DeviceRectToLogical(windowPosition, dpi.DpiScaleX, dpi.
DpiScaleY
),
529
DpiHelper.DevicePixelsToLogical(mousePosScreen, dpi.DpiScaleX, dpi.
DpiScaleY
));
817
double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.
DpiScaleY
).X;
833
double topRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopRight, 0), dpi.DpiScaleX, dpi.
DpiScaleY
).X;
841
double bottomLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomLeft, 0), dpi.DpiScaleX, dpi.
DpiScaleY
).X;
849
double bottomRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomRight, 0), dpi.DpiScaleX, dpi.
DpiScaleY
).X;
966
Thickness deviceGlassThickness = DpiHelper.LogicalThicknessToDevice(_chromeInfo.GlassFrameThickness, dpi.DpiScaleX, dpi.
DpiScaleY
);
971
Thickness windowResizeBorderThicknessDevice = DpiHelper.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.
DpiScaleY
);
1081
Size logicalSize = DpiHelper.DeviceSizeToLogical(new Size(rcWindow.Width, rcWindow.Height), dpi.DpiScaleX, dpi.
DpiScaleY
);
1088
Point deviceTopLeft = DpiHelper.LogicalPixelsToDevice(logicalTopLeft, dpi.DpiScaleX, dpi.
DpiScaleY
);
1089
Point deviceBottomRight = DpiHelper.LogicalPixelsToDevice(logicalBottomRight, dpi.DpiScaleX, dpi.
DpiScaleY
);
System\Windows\SystemCommands.cs (1)
70
ShowSystemMenuPhysicalCoordinates(window, DpiHelper.LogicalPixelsToDevice(screenLocation, dpi.DpiScaleX, dpi.
DpiScaleY
));
WindowsFormsIntegration (4)
System\Windows\Integration\WindowsFormsHost.cs (4)
244
SD.Size constraintSize = Convert.ConstraintToSystemDrawingSize(constraint, _currentScale, dpi.DpiScaleX, dpi.
DpiScaleY
);
246
System.Windows.Size returnSize = Convert.ToSystemWindowsSize(preferredSize, _currentScale, dpi.DpiScaleX, dpi.
DpiScaleY
);
277
SD.Size targetSize = Convert.ConstraintToSystemDrawingSize(finalSize, _currentScale, dpi.DpiScaleX, dpi.
DpiScaleY
);
283
Size returnSize = Convert.ToSystemWindowsSize(Child.Size, _currentScale, dpi.DpiScaleX, dpi.
DpiScaleY
);