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