src\Framework\MS\Internal\AnimatedTypeHelpers.cs (11)
39InterpolateDouble(from.Top, to.Top, progress),
57AddDouble(value1.Top, value2.Top),
70value1.Top - value2.Top,
88+ Math.Pow(GetSegmentLengthDouble(from.Top, to.Top), 2.0)
108ScaleDouble(value.Top, factor),
131|| IsValidAnimationValueDouble(value.Top)
154GetZeroValueDouble(baseValue.Top),
src\Framework\System\Windows\Controls\Border.cs (11)
227borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
274borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
509if (DoubleUtil.GreaterThan(border.Top, 0))
518pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY);
522pen.Thickness = border.Top;
582UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY));
597ptTL = new Point(border.Left, border.Top);
632return new Size(th.Left + th.Right, th.Top + th.Bottom);
647rt.Top + thick.Top,
649Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
947double top = 0.5 * borders.Top;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (19)
1261firstContainerOffsetFromViewport -= fe.Margin.Top;
2959_pixelDistanceToViewport += (isHorizontal ? inset.Left : inset.Top);
5186viewport.Y -= IsPixelBased ? inset.Top : isHeaderBeforeItems ? 1 : 0;
5354if (DoubleUtil.GreaterThanOrClose(viewport.Height, inset.Top))
5359viewport.Height = Math.Max(0, viewport.Height - inset.Top);
5370cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Top - viewport.Height));
5387cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Top);
6300inset.Top = headerDesiredSizes.PixelSize.Height + margin.Top;
6333childRect.Offset(-margin.Left, -margin.Top);
6363DoubleUtil.AreClose(oldInset.Top, inset.Top ) &&
6375|| (!isHorizontal && !(AreInsetsClose(oldInset.Top, inset.Top) &&
6481return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom);
6979: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0));
7513inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom);
10933offset += (isHorizontal ? inset.Left : inset.Top);
12805writer.Write(thickness.Top);