MS\Internal\AnimatedTypeHelpers.cs (11)
42InterpolateDouble(from.Top, to.Top, progress),
60AddDouble(value1.Top, value2.Top),
73value1.Top - value2.Top,
91+ Math.Pow(GetSegmentLengthDouble(from.Top, to.Top), 2.0)
111ScaleDouble(value.Top, factor),
134|| IsValidAnimationValueDouble(value.Top)
157GetZeroValueDouble(baseValue.Top),
System\Windows\Controls\Border.cs (11)
220borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
267borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
500if (DoubleUtil.GreaterThanZero(border.Top))
509pen.Thickness = UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY);
513pen.Thickness = border.Top;
573UIElement.RoundLayoutValue(border.Top, dpi.DpiScaleY));
588ptTL = new Point(border.Left, border.Top);
623return new Size(th.Left + th.Right, th.Top + th.Bottom);
638rt.Top + thick.Top,
640Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
938double top = 0.5 * borders.Top;
System\Windows\Controls\VirtualizingStackPanel.cs (18)
3011_pixelDistanceToViewport += (isHorizontal ? inset.Left : inset.Top);
5303viewport.Y -= IsPixelBased ? inset.Top : isHeaderBeforeItems ? 1 : 0;
5471if (DoubleUtil.GreaterThanOrClose(viewport.Height, inset.Top))
5476viewport.Height = Math.Max(0, viewport.Height - inset.Top);
5487cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Top - viewport.Height));
5504cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Top);
6438inset.Top = headerDesiredSizes.PixelSize.Height + margin.Top;
6471childRect.Offset(-margin.Left, -margin.Top);
6501DoubleUtil.AreClose(oldInset.Top, inset.Top ) &&
6513|| (!isHorizontal && !(AreInsetsClose(oldInset.Top, inset.Top) &&
6618return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom);
7119: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0));
7653inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom);
11080offset += (isHorizontal ? inset.Left : inset.Top);
12972writer.Write(thickness.Top);