19 writes to Top
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
PresentationFramework (9)
PresentationFramework.Aero (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Top += 1.0;
PresentationFramework.Aero2 (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Top += 1.0;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Top += 1.0;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Top += 1.0;
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Top += 1.0;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Top += 1.0;
225 references to Top
PresentationFramework (138)
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);
5271viewport.Y -= IsPixelBased ? inset.Top : isHeaderBeforeItems ? 1 : 0;
5439if (DoubleUtil.GreaterThanOrClose(viewport.Height, inset.Top))
5444viewport.Height = Math.Max(0, viewport.Height - inset.Top);
5455cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Top - viewport.Height));
5472cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Top);
6406inset.Top = headerDesiredSizes.PixelSize.Height + margin.Top;
6439childRect.Offset(-margin.Left, -margin.Top);
6469DoubleUtil.AreClose(oldInset.Top, inset.Top ) &&
6481|| (!isHorizontal && !(AreInsetsClose(oldInset.Top, inset.Top) &&
6586return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom);
7089: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0));
7623inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom);
11049offset += (isHorizontal ? inset.Left : inset.Top);
12934writer.Write(thickness.Top);
PresentationFramework.Aero (13)
PresentationFramework.Aero2 (13)
PresentationFramework.AeroLite (4)
PresentationFramework.Classic (28)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (24)
571thickness.Top >= 0 && !double.IsPositiveInfinity(thickness.Top) &&
593return new Size(th.Left + th.Right, th.Top + th.Bottom);
600rt.Top + thick.Top,
602Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
712double borderHeight = border.Top + border.Bottom;
718childArrangeRect.Y = border.Top;
742return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s);
849yLines = GetPixelSnappingGuidelines(height, singleThickness.Top, singleThickness.Bottom, (int)classicThickness);
951if (borderThickness.Top > 0.0)
953dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, borderThickness.Top));
986DrawBorder(highlight, new Thickness(singleThickness.Left, singleThickness.Top, 0, 0), dc, ref bounds);
994if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom))
1004if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom))
1013if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom))
1023if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom))
1034if (bounds.Height < singleThickness.Top + singleThickness.Bottom)
1037dc.DrawRectangle(DarkBrush, null, new Rect(bounds.Left, bounds.Top, bounds.Width, singleThickness.Top));
1040bounds.Y += singleThickness.Top;
1041bounds.Height -= singleThickness.Top + singleThickness.Bottom;
1299if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom))
1307if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom))
1315if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom))
1324if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom))
PresentationFramework.Luna (12)
PresentationFramework.Royale (12)
System.Windows.Controls.Ribbon (4)
WindowsFormsIntegration (1)