67 references to DpiScaleX
PresentationCore (7)
MS\Internal\DpiScale2.cs (2)
40
get { return this.dpiScale.
DpiScaleX
; }
128
DoubleUtil.AreClose(this.DpiScaleX, dpiScale.
DpiScaleX
) &&
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
2249
command.DpiX = dpiScale.
DpiScaleX
;
2273
command.DpiX = dpiScale.
DpiScaleX
;
System\Windows\DpiScale.cs (2)
27
/// Gets the DPI scale on the X axis.When DPI is 96, <see cref="
DpiScaleX
"/> is 1.
41
/// On Windows Desktop, this value is the same as <see cref="
DpiScaleX
"/>
System\Windows\UIElement.cs (1)
873
finalRect = RoundLayoutRect(finalRect, dpi.
DpiScaleX
, dpi.DpiScaleY);
PresentationFramework (56)
MS\Internal\Documents\TextBoxView.cs (1)
254
result = RoundLayoutValue(result, GetDpi().
DpiScaleX
);
MS\Internal\Ink\EraserBehavior.cs (1)
295
_cachedPointEraserCursor = PenCursorManager.GetPointEraserCursor(_cachedStylusShape, xf, dpi.
DpiScaleX
, dpi.DpiScaleY);
MS\Internal\Ink\InkCollectionBehavior.cs (1)
357
_cachedPenCursor = PenCursorManager.GetPenCursor(da, false, (this.InkCanvas.FlowDirection == FlowDirection.RightToLeft), dpi.
DpiScaleX
, dpi.DpiScaleY);
MS\Internal\Text\ComplexLine.cs (1)
199
proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.X + rect.Left, dpi.
DpiScaleX
),
System\Windows\Controls\Border.cs (9)
215
borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.
DpiScaleX
), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
216
UIElement.RoundLayoutValue(borders.Right, dpi.
DpiScaleX
), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY));
262
borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.
DpiScaleX
), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
263
UIElement.RoundLayoutValue(borders.Right, dpi.
DpiScaleX
), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY));
412
pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.
DpiScaleX
);
477
pen.Thickness = UIElement.RoundLayoutValue(border.Right, dpi.
DpiScaleX
);
575
ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.
DpiScaleX
),
580
ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.
DpiScaleX
),
585
ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.
DpiScaleX
),
System\Windows\Controls\Grid.cs (2)
2072
dpi = columns ? dpiScale.
DpiScaleX
: dpiScale.DpiScaleY;
2646
double dpi = columns ? dpiScale.
DpiScaleX
: dpiScale.DpiScaleY;
System\Windows\Controls\GridSplitter.cs (1)
884
delta = UIElement.RoundLayoutValue(delta, dpi.
DpiScaleX
);
System\Windows\Controls\VirtualizingStackPanel.cs (4)
532
_scrollData._offset.X = UIElement.RoundLayoutValue(_scrollData._offset.X, dpi.
DpiScaleX
);
533
_scrollData._computedOffset.X = UIElement.RoundLayoutValue(_scrollData._computedOffset.X, dpi.
DpiScaleX
);
7783
double dpiScale = isHorizontal ? dpi.
DpiScaleX
: dpi.DpiScaleY;
12345
"DPIScale:", dpiScale.
DpiScaleX
, dpiScale.DpiScaleY,
System\Windows\Documents\WpfPayload.cs (1)
419
RenderTargetBitmap rtb = new RenderTargetBitmap((int)(di.Width * dpi.
DpiScaleX
), (int)(di.Height * dpi.DpiScaleY),
System\Windows\FrameworkElement.cs (21)
4320
marginWidth = RoundLayoutValue(marginWidth, dpi.
DpiScaleX
);
4334
mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.
DpiScaleX
);
4336
mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.
DpiScaleX
);
4381
frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.
DpiScaleX
, dpi.DpiScaleY);
4462
clippedDesiredWidth = UIElement.RoundLayoutValue(clippedDesiredWidth, dpi.
DpiScaleX
);
4562
marginWidth = UIElement.RoundLayoutValue(marginWidth, dpi.
DpiScaleX
);
4671
mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.
DpiScaleX
);
4673
mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.
DpiScaleX
);
4696
arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.
DpiScaleX
, dpi.DpiScaleY);
4709
RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.
DpiScaleX
, dpi.DpiScaleY);
4722
clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.
DpiScaleX
, dpi.DpiScaleY);
4739
clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.
DpiScaleX
, dpi.DpiScaleY);
4755
clientSize = UIElement.RoundLayoutSize(clientSize, dpi.
DpiScaleX
, dpi.DpiScaleY);
4771
offset.X = UIElement.RoundLayoutValue(offset.X, dpi.
DpiScaleX
);
4884
mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.
DpiScaleX
);
4886
mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.
DpiScaleX
);
4936
clipRect = UIElement.RoundLayoutRect(clipRect, dpi.
DpiScaleX
, dpi.DpiScaleY);
4957
slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.
DpiScaleX
, dpi.DpiScaleY);
4974
localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.
DpiScaleX
, dpi.DpiScaleY);
5003
slotRect = UIElement.RoundLayoutRect(slotRect, dpi.
DpiScaleX
, dpi.DpiScaleY);
5012
localRect = UIElement.RoundLayoutRect(localRect, dpi.
DpiScaleX
, dpi.DpiScaleY);
System\Windows\Shell\WindowChromeWorker.cs (13)
409
Thickness windowResizeBorderThicknessDevice = DpiHelper.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.
DpiScaleX
, dpi.DpiScaleY);
487
mousePosWindow = DpiHelper.DevicePixelsToLogical(mousePosWindow, dpi.
DpiScaleX
, dpi.DpiScaleY);
527
DpiHelper.DeviceRectToLogical(windowPosition, dpi.
DpiScaleX
, dpi.DpiScaleY),
528
DpiHelper.DevicePixelsToLogical(mousePosScreen, dpi.
DpiScaleX
, dpi.DpiScaleY));
816
double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.
DpiScaleX
, dpi.DpiScaleY).X;
832
double topRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopRight, 0), dpi.
DpiScaleX
, dpi.DpiScaleY).X;
840
double bottomLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomLeft, 0), dpi.
DpiScaleX
, dpi.DpiScaleY).X;
848
double bottomRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomRight, 0), dpi.
DpiScaleX
, dpi.DpiScaleY).X;
965
Thickness deviceGlassThickness = DpiHelper.LogicalThicknessToDevice(_chromeInfo.GlassFrameThickness, dpi.
DpiScaleX
, dpi.DpiScaleY);
970
Thickness windowResizeBorderThicknessDevice = DpiHelper.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.
DpiScaleX
, dpi.DpiScaleY);
1080
Size logicalSize = DpiHelper.DeviceSizeToLogical(new Size(rcWindow.Width, rcWindow.Height), dpi.
DpiScaleX
, dpi.DpiScaleY);
1087
Point deviceTopLeft = DpiHelper.LogicalPixelsToDevice(logicalTopLeft, dpi.
DpiScaleX
, dpi.DpiScaleY);
1088
Point deviceBottomRight = DpiHelper.LogicalPixelsToDevice(logicalBottomRight, dpi.
DpiScaleX
, dpi.DpiScaleY);
System\Windows\SystemCommands.cs (1)
69
ShowSystemMenuPhysicalCoordinates(window, DpiHelper.LogicalPixelsToDevice(screenLocation, dpi.
DpiScaleX
, dpi.DpiScaleY));
WindowsFormsIntegration (4)
System\Windows\Integration\WindowsFormsHost.cs (4)
243
SD.Size constraintSize = Convert.ConstraintToSystemDrawingSize(constraint, _currentScale, dpi.
DpiScaleX
, dpi.DpiScaleY);
245
System.Windows.Size returnSize = Convert.ToSystemWindowsSize(preferredSize, _currentScale, dpi.
DpiScaleX
, dpi.DpiScaleY);
276
SD.Size targetSize = Convert.ConstraintToSystemDrawingSize(finalSize, _currentScale, dpi.
DpiScaleX
, dpi.DpiScaleY);
282
Size returnSize = Convert.ToSystemWindowsSize(Child.Size, _currentScale, dpi.
DpiScaleX
, dpi.DpiScaleY);