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),
System\Windows\Controls\Border.cs (11)
216borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
263borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
500if (DoubleUtil.GreaterThanZero(border.Top))
511pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY);
515pen.Thickness = border.Top;
577UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY));
592ptTL = new Point(border.Left, border.Top);
627return new Size(th.Left + th.Right, th.Top + th.Bottom);
642rt.Top + thick.Top,
644Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
942double top = 0.5 * borders.Top;
System\Windows\Controls\VirtualizingStackPanel.cs (18)
3004_pixelDistanceToViewport += (isHorizontal ? inset.Left : inset.Top);
5296viewport.Y -= IsPixelBased ? inset.Top : isHeaderBeforeItems ? 1 : 0;
5464if (DoubleUtil.GreaterThanOrClose(viewport.Height, inset.Top))
5469viewport.Height = Math.Max(0, viewport.Height - inset.Top);
5480cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Top - viewport.Height));
5497cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Top);
6431inset.Top = headerDesiredSizes.PixelSize.Height + margin.Top;
6464childRect.Offset(-margin.Left, -margin.Top);
6494DoubleUtil.AreClose(oldInset.Top, inset.Top ) &&
6506|| (!isHorizontal && !(AreInsetsClose(oldInset.Top, inset.Top) &&
6611return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom);
7114: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0));
7648inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom);
11077offset += (isHorizontal ? inset.Left : inset.Top);
12961writer.Write(thickness.Top);