67 references to DpiScaleX
PresentationCore (7)
MS\Internal\DpiScale2.cs (2)
41get { return this.dpiScale.DpiScaleX; } 129DoubleUtil.AreClose(this.DpiScaleX, dpiScale.DpiScaleX) &&
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (2)
2250command.DpiX = dpiScale.DpiScaleX; 2274command.DpiX = dpiScale.DpiScaleX;
System\Windows\DpiScale.cs (2)
28/// Gets the DPI scale on the X axis.When DPI is 96, <see cref="DpiScaleX"/> is 1. 42/// On Windows Desktop, this value is the same as <see cref="DpiScaleX"/>
System\Windows\UIElement.cs (1)
878finalRect = RoundLayoutRect(finalRect, dpi.DpiScaleX, dpi.DpiScaleY);
PresentationFramework (56)
MS\Internal\Documents\TextBoxView.cs (1)
297result = RoundLayoutValue(result, GetDpi().DpiScaleX);
MS\Internal\Ink\EraserBehavior.cs (1)
297_cachedPointEraserCursor = PenCursorManager.GetPointEraserCursor(_cachedStylusShape, xf, dpi.DpiScaleX, dpi.DpiScaleY);
MS\Internal\Ink\InkCollectionBehavior.cs (1)
359_cachedPenCursor = PenCursorManager.GetPenCursor(da, false, (this.InkCanvas.FlowDirection == FlowDirection.RightToLeft), dpi.DpiScaleX, dpi.DpiScaleY);
MS\Internal\Text\ComplexLine.cs (1)
200proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.X + rect.Left, dpi.DpiScaleX),
System\Windows\Controls\Border.cs (9)
216borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 217UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 263borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 264UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 411pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX); 474pen.Thickness = UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX); 568ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX), 573ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 578ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX),
System\Windows\Controls\Grid.cs (2)
2080dpi = columns ? dpiScale.DpiScaleX : dpiScale.DpiScaleY; 2654double dpi = columns ? dpiScale.DpiScaleX : dpiScale.DpiScaleY;
System\Windows\Controls\GridSplitter.cs (1)
879delta = UIElement.RoundLayoutValue(delta, dpi.DpiScaleX);
System\Windows\Controls\VirtualizingStackPanel.cs (4)
533_scrollData._offset.X = UIElement.RoundLayoutValue(_scrollData._offset.X, dpi.DpiScaleX); 534_scrollData._computedOffset.X = UIElement.RoundLayoutValue(_scrollData._computedOffset.X, dpi.DpiScaleX); 7805double dpiScale = isHorizontal ? dpi.DpiScaleX : dpi.DpiScaleY; 12371"DPIScale:", dpiScale.DpiScaleX, dpiScale.DpiScaleY,
System\Windows\Documents\WpfPayload.cs (1)
418RenderTargetBitmap rtb = new RenderTargetBitmap((int)(di.Width * dpi.DpiScaleX), (int)(di.Height * dpi.DpiScaleY),
System\Windows\FrameworkElement.cs (21)
4330marginWidth = RoundLayoutValue(marginWidth, dpi.DpiScaleX); 4344mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4346mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4391frameworkAvailableSize = UIElement.RoundLayoutSize(frameworkAvailableSize, dpi.DpiScaleX, dpi.DpiScaleY); 4472clippedDesiredWidth = UIElement.RoundLayoutValue(clippedDesiredWidth, dpi.DpiScaleX); 4572marginWidth = UIElement.RoundLayoutValue(marginWidth, dpi.DpiScaleX); 4681mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4683mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4706arrangeSize = UIElement.RoundLayoutSize(arrangeSize, dpi.DpiScaleX, dpi.DpiScaleY); 4719RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4732clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4749clippedInkSize = UIElement.RoundLayoutSize(clippedInkSize, dpi.DpiScaleX, dpi.DpiScaleY); 4765clientSize = UIElement.RoundLayoutSize(clientSize, dpi.DpiScaleX, dpi.DpiScaleY); 4781offset.X = UIElement.RoundLayoutValue(offset.X, dpi.DpiScaleX); 4892mm.maxWidth = UIElement.RoundLayoutValue(mm.maxWidth, dpi.DpiScaleX); 4894mm.minWidth = UIElement.RoundLayoutValue(mm.minWidth, dpi.DpiScaleX); 4944clipRect = UIElement.RoundLayoutRect(clipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4965slotClipRect = UIElement.RoundLayoutRect(slotClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 4982localClipRect = UIElement.RoundLayoutRect(localClipRect, dpi.DpiScaleX, dpi.DpiScaleY); 5011slotRect = UIElement.RoundLayoutRect(slotRect, dpi.DpiScaleX, dpi.DpiScaleY); 5020localRect = UIElement.RoundLayoutRect(localRect, dpi.DpiScaleX, dpi.DpiScaleY);
System\Windows\Shell\WindowChromeWorker.cs (13)
410Thickness windowResizeBorderThicknessDevice = DpiHelper.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY); 488mousePosWindow = DpiHelper.DevicePixelsToLogical(mousePosWindow, dpi.DpiScaleX, dpi.DpiScaleY); 528DpiHelper.DeviceRectToLogical(windowPosition, dpi.DpiScaleX, dpi.DpiScaleY), 529DpiHelper.DevicePixelsToLogical(mousePosScreen, dpi.DpiScaleX, dpi.DpiScaleY)); 817double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 833double topRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 841double bottomLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 849double bottomRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 966Thickness deviceGlassThickness = DpiHelper.LogicalThicknessToDevice(_chromeInfo.GlassFrameThickness, dpi.DpiScaleX, dpi.DpiScaleY); 971Thickness windowResizeBorderThicknessDevice = DpiHelper.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY); 1081Size logicalSize = DpiHelper.DeviceSizeToLogical(new Size(rcWindow.Width, rcWindow.Height), dpi.DpiScaleX, dpi.DpiScaleY); 1088Point deviceTopLeft = DpiHelper.LogicalPixelsToDevice(logicalTopLeft, dpi.DpiScaleX, dpi.DpiScaleY); 1089Point deviceBottomRight = DpiHelper.LogicalPixelsToDevice(logicalBottomRight, dpi.DpiScaleX, dpi.DpiScaleY);
System\Windows\SystemCommands.cs (1)
70ShowSystemMenuPhysicalCoordinates(window, DpiHelper.LogicalPixelsToDevice(screenLocation, dpi.DpiScaleX, dpi.DpiScaleY));
WindowsFormsIntegration (4)
System\Windows\Integration\WindowsFormsHost.cs (4)
247SD.Size constraintSize = Convert.ConstraintToSystemDrawingSize(constraint, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY); 249System.Windows.Size returnSize = Convert.ToSystemWindowsSize(preferredSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY); 280SD.Size targetSize = Convert.ConstraintToSystemDrawingSize(finalSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY); 286Size returnSize = Convert.ToSystemWindowsSize(Child.Size, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);