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)
2995_pixelDistanceToViewport += (isHorizontal ? inset.Left : inset.Top);
5275viewport.Y -= IsPixelBased ? inset.Top : isHeaderBeforeItems ? 1 : 0;
5443if (DoubleUtil.GreaterThanOrClose(viewport.Height, inset.Top))
5448viewport.Height = Math.Max(0, viewport.Height - inset.Top);
5459cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Top - viewport.Height));
5476cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Top);
6410inset.Top = headerDesiredSizes.PixelSize.Height + margin.Top;
6443childRect.Offset(-margin.Left, -margin.Top);
6473DoubleUtil.AreClose(oldInset.Top, inset.Top ) &&
6485|| (!isHorizontal && !(AreInsetsClose(oldInset.Top, inset.Top) &&
6590return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom);
7093: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0));
7627inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom);
11053offset += (isHorizontal ? inset.Left : inset.Top);
12938writer.Write(thickness.Top);