61 references to RoundLayoutValue
PresentationCore (6)
System\Windows\UIElement.cs (6)
1067
return new Size(
RoundLayoutValue
(size.Width, dpiScaleX),
RoundLayoutValue
(size.Height, dpiScaleY));
1115
return new Rect(
RoundLayoutValue
(rect.X, dpiScaleX),
1116
RoundLayoutValue
(rect.Y, dpiScaleY),
1117
RoundLayoutValue
(rect.Width, dpiScaleX),
1118
RoundLayoutValue
(rect.Height, dpiScaleY)
PresentationFramework (55)
MS\Internal\Documents\TextBoxView.cs (2)
248
result =
RoundLayoutValue
(result, GetDpi().DpiScaleX);
275
result =
RoundLayoutValue
(result, GetDpi().DpiScaleY);
MS\Internal\Text\ComplexLine.cs (2)
196
proxyVisual.Offset = new Vector(UIElement.
RoundLayoutValue
(lineOffset.X + rect.Left, dpi.DpiScaleX),
197
UIElement.
RoundLayoutValue
(lineOffset.Y + rect.Top, dpi.DpiScaleY));
System\Windows\Controls\Border.cs (18)
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);
510
pen.Thickness = UIElement.
RoundLayoutValue
(border.Top, dpi.DpiScaleY);
543
pen.Thickness = UIElement.
RoundLayoutValue
(border.Bottom, dpi.DpiScaleY);
575
ptTL = new Point(UIElement.
RoundLayoutValue
(border.Left, dpi.DpiScaleX),
576
UIElement.
RoundLayoutValue
(border.Top, dpi.DpiScaleY));
580
ptBR = new Point(UIElement.
RoundLayoutValue
(RenderSize.Width - border.Right, dpi.DpiScaleX),
581
UIElement.
RoundLayoutValue
(RenderSize.Height - border.Bottom, dpi.DpiScaleY));
585
ptBR = new Point(RenderSize.Width - UIElement.
RoundLayoutValue
(border.Right, dpi.DpiScaleX),
586
RenderSize.Height - UIElement.
RoundLayoutValue
(border.Bottom, dpi.DpiScaleY));
System\Windows\Controls\Grid.cs (6)
2159
definitions[i].SizeCache = UIElement.
RoundLayoutValue
(definitions[i].SizeCache, dpi);
2198
definitions[i].SizeCache = UIElement.
RoundLayoutValue
(definitions[i].SizeCache, dpi);
2248
definitions[definitionIndices[i]].SizeCache = UIElement.
RoundLayoutValue
(definitions[definitionIndices[i]].SizeCache, dpi);
2272
final = UIElement.
RoundLayoutValue
(finalOld, dpi);
2298
double dpiIncrement = UIElement.
RoundLayoutValue
(1.0, dpi);
2708
double roundedSize = UIElement.
RoundLayoutValue
(def.SizeCache, dpi);
System\Windows\Controls\GridSplitter.cs (2)
884
delta = UIElement.
RoundLayoutValue
(delta, dpi.DpiScaleX);
892
delta = UIElement.
RoundLayoutValue
(delta, dpi.DpiScaleY);
System\Windows\Controls\VirtualizingStackPanel.cs (5)
532
_scrollData._offset.X = UIElement.
RoundLayoutValue
(_scrollData._offset.X, dpi.DpiScaleX);
533
_scrollData._computedOffset.X = UIElement.
RoundLayoutValue
(_scrollData._computedOffset.X, dpi.DpiScaleX);
660
_scrollData._offset.Y = UIElement.
RoundLayoutValue
(_scrollData._offset.Y, dpi.DpiScaleY);
661
_scrollData._computedOffset.Y = UIElement.
RoundLayoutValue
(_scrollData._computedOffset.Y, dpi.DpiScaleY);
7784
uniformOrAverageContainerPixelSize =
RoundLayoutValue
(
System\Windows\FrameworkElement.cs (20)
4320
marginWidth =
RoundLayoutValue
(marginWidth, dpi.DpiScaleX);
4321
marginHeight =
RoundLayoutValue
(marginHeight, dpi.DpiScaleY);
4333
mm.maxHeight = UIElement.
RoundLayoutValue
(mm.maxHeight, dpi.DpiScaleY);
4334
mm.maxWidth = UIElement.
RoundLayoutValue
(mm.maxWidth, dpi.DpiScaleX);
4335
mm.minHeight = UIElement.
RoundLayoutValue
(mm.minHeight, dpi.DpiScaleY);
4336
mm.minWidth = UIElement.
RoundLayoutValue
(mm.minWidth, dpi.DpiScaleX);
4459
clippedDesiredWidth = UIElement.
RoundLayoutValue
(clippedDesiredWidth, dpi.DpiScaleX);
4460
clippedDesiredHeight = UIElement.
RoundLayoutValue
(clippedDesiredHeight, dpi.DpiScaleY);
4559
marginWidth = UIElement.
RoundLayoutValue
(marginWidth, dpi.DpiScaleX);
4560
marginHeight = UIElement.
RoundLayoutValue
(marginHeight, dpi.DpiScaleY);
4667
mm.maxHeight = UIElement.
RoundLayoutValue
(mm.maxHeight, dpi.DpiScaleY);
4668
mm.maxWidth = UIElement.
RoundLayoutValue
(mm.maxWidth, dpi.DpiScaleX);
4669
mm.minHeight = UIElement.
RoundLayoutValue
(mm.minHeight, dpi.DpiScaleY);
4670
mm.minWidth = UIElement.
RoundLayoutValue
(mm.minWidth, dpi.DpiScaleX);
4768
offset.X = UIElement.
RoundLayoutValue
(offset.X, dpi.DpiScaleX);
4769
offset.Y = UIElement.
RoundLayoutValue
(offset.Y, dpi.DpiScaleY);
4880
mm.maxHeight = UIElement.
RoundLayoutValue
(mm.maxHeight, dpi.DpiScaleY);
4881
mm.maxWidth = UIElement.
RoundLayoutValue
(mm.maxWidth, dpi.DpiScaleX);
4882
mm.minHeight = UIElement.
RoundLayoutValue
(mm.minHeight, dpi.DpiScaleY);
4883
mm.minWidth = UIElement.
RoundLayoutValue
(mm.minWidth, dpi.DpiScaleX);