MS\Internal\AnimatedTypeHelpers.cs (11)
38InterpolateDouble(from.Top, to.Top, progress),
56AddDouble(value1.Top, value2.Top),
69value1.Top - value2.Top,
87+ Math.Pow(GetSegmentLengthDouble(from.Top, to.Top), 2.0)
107ScaleDouble(value.Top, factor),
130|| IsValidAnimationValueDouble(value.Top)
153GetZeroValueDouble(baseValue.Top),
System\Windows\Controls\Border.cs (11)
215borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
262borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
499if (DoubleUtil.GreaterThanZero(border.Top))
510pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY);
514pen.Thickness = border.Top;
576UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY));
591ptTL = new Point(border.Left, border.Top);
626return new Size(th.Left + th.Right, th.Top + th.Bottom);
641rt.Top + thick.Top,
643Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
941double top = 0.5 * borders.Top;
System\Windows\Controls\VirtualizingStackPanel.cs (18)
2994_pixelDistanceToViewport += (isHorizontal ? inset.Left : inset.Top);
5274viewport.Y -= IsPixelBased ? inset.Top : isHeaderBeforeItems ? 1 : 0;
5442if (DoubleUtil.GreaterThanOrClose(viewport.Height, inset.Top))
5447viewport.Height = Math.Max(0, viewport.Height - inset.Top);
5458cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Top - viewport.Height));
5475cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Top);
6409inset.Top = headerDesiredSizes.PixelSize.Height + margin.Top;
6442childRect.Offset(-margin.Left, -margin.Top);
6472DoubleUtil.AreClose(oldInset.Top, inset.Top ) &&
6484|| (!isHorizontal && !(AreInsetsClose(oldInset.Top, inset.Top) &&
6589return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom);
7092: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0));
7626inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom);
11052offset += (isHorizontal ? inset.Left : inset.Top);
12937writer.Write(thickness.Top);