17 writes to Bottom
PresentationFramework (11)
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
239pageMargin.Bottom = lineHeight;
MS\Internal\Helper.cs (2)
1181itemsCorrectionFactor.Bottom = parentRect.Bottom - itemsRect.Bottom; 1196itemsCorrectionFactor.Bottom = 0;
MS\Internal\PtsHost\ParagraphVisual.cs (1)
77_borderThickness.Bottom = 0.0;
MS\Internal\Text\TextDpi.cs (2)
170if (pageMargin.Top >= pageSize.Height) { pageMargin.Bottom = 0.0; } 173pageMargin.Bottom = Math.Max(0.0, pageSize.Height - pageMargin.Top - _minSize);;
System\Windows\Documents\FlowDocument.cs (1)
1022pageMargin.Bottom = lineHeight;
System\Windows\Documents\TextRangeEditTables.cs (1)
1293border.Bottom = borderBottom;
System\Windows\Shell\WindowChromeWorker.cs (3)
325templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 987deviceGlassThickness.Bottom -= windowResizeBorderThicknessDevice.Bottom; 988deviceGlassThickness.Bottom = Math.Max(0, deviceGlassThickness.Bottom);
PresentationFramework.Aero (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
275padding.Bottom -= 1.0;
PresentationFramework.Aero2 (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
275padding.Bottom -= 1.0;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
275padding.Bottom -= 1.0;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
275padding.Bottom -= 1.0;
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
275padding.Bottom -= 1.0;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
275padding.Bottom -= 1.0;
193 references to Bottom
PresentationFramework (124)
MS\Internal\AnimatedTypeHelpers.cs (11)
41InterpolateDouble(from.Bottom, to.Bottom, progress)); 59AddDouble(value1.Bottom, value2.Bottom)); 72value1.Bottom - value2.Bottom); 90+ Math.Pow(GetSegmentLengthDouble(from.Bottom, to.Bottom), 2.0); 110ScaleDouble(value.Bottom, factor)); 133|| IsValidAnimationValueDouble(value.Bottom)) 156GetZeroValueDouble(baseValue.Bottom));
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
237if (double.IsNaN(pageMargin.Bottom))
MS\Internal\Helper.cs (7)
1106itemPixelSize.Height += correctionFactor.Bottom; 1119itemPixelSizeBeforeViewport.Height += correctionFactor.Bottom; 1131itemPixelSizeInViewport.Height += correctionFactor.Bottom; 1142itemPixelSizeAfterViewport.Height += correctionFactor.Bottom; 1189if (itemsCorrectionFactor.Bottom < 0) 1203DoubleUtil.AreClose(itemsCorrectionFactor.Bottom, oldItemsCorrectionFactor.Bottom)))
MS\Internal\PtsHost\FigureHelper.cs (2)
145value = (structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value; 188value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom));
MS\Internal\PtsHost\FigureParagraph.cs (1)
635maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
156pageSize.Height += pageMargin.Top + pageMargin.Bottom; 198pageSize.Height - (pageMargin.Top + pageMargin.Bottom))); 691size.Height += _pageMargin.Top + _pageMargin.Bottom;
MS\Internal\PtsHost\MarginCollapsingState.cs (1)
81if (!DoubleUtil.IsZero(mbp.Margin.Bottom))
MS\Internal\PtsHost\MbpInfo.cs (15)
141Double.IsNaN(mbp.Margin.Bottom) ? defaultMargin.Bottom : mbp.Margin.Bottom); 166Double.IsNaN(mbp.Padding.Bottom) ? defaultPadding.Bottom : mbp.Padding.Bottom); 198get { return TextDpi.ToTextDpi(_margin.Bottom) + TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 230get { return TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 262get { return TextDpi.ToTextDpi(_border.Bottom); } 294get { return TextDpi.ToTextDpi(_margin.Bottom); } 340Double.IsNaN(_padding.Bottom)); 355Double.IsNaN(_margin.Bottom));
MS\Internal\PtsHost\ParagraphVisual.cs (3)
130if (DoubleUtil.GreaterThanZero(_borderThickness.Bottom)) 134pen.Thickness = _borderThickness.Bottom; 151new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
MS\Internal\PtsHost\Section.cs (1)
119fsrcMargin.dv = dvrPage - TextDpi.ToTextDpi(pageMargin.Top + pageMargin.Bottom);
MS\Internal\PtsHost\StructuralCache.cs (1)
766PageSize.Height - PageMargin.Top - PageMargin.Bottom)); } }
MS\Internal\PtsHost\SubpageParaClient.cs (2)
80mbp.Border = new Thickness(mbp.Border.Left, 0.0, mbp.Border.Right, mbp.Border.Bottom); 81mbp.Padding = new Thickness(mbp.Padding.Left, 0.0, mbp.Padding.Right, mbp.Padding.Bottom);
MS\Internal\PtsHost\UIElementParagraph.cs (1)
424elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
MS\Internal\Text\TextDpi.cs (2)
171if (pageMargin.Top + pageMargin.Bottom >= pageSize.Height) 174if (pageMargin.Top + pageMargin.Bottom >= pageSize.Height)
System\Windows\Controls\Border.cs (11)
217UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 264UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 527if (DoubleUtil.GreaterThanZero(border.Bottom)) 536pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY); 540pen.Thickness = border.Bottom; 574UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 579RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY)); 585ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom); 619return new Size(th.Left + th.Right, th.Top + th.Bottom); 636Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 936double bottom = 0.5 * borders.Bottom;
System\Windows\Controls\Control.cs (1)
379&& t.Bottom >= 0.0d);
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
180delta += margin.Bottom;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
592Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom));
System\Windows\Controls\Primitives\TabPanel.cs (2)
204desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom); 260double bottomOffset = margin.Bottom;
System\Windows\Controls\SinglePageViewer.cs (1)
704Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom));
System\Windows\Controls\TextBlock.cs (6)
1266Math.Max(0.0, constraint.Height - (padding.Top + padding.Bottom))); 1338desiredSize.Height += (padding.Top + padding.Bottom); 1531double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 1969Math.Max(0.0, _referenceSize.Height - (padding.Top + padding.Bottom))); 3107Math.Max(0.0, computedSize.Height - (padding.Top + padding.Bottom))); 3156double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
System\Windows\Controls\TextRangeAdaptor.cs (1)
319return margin.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(margin.Bottom) : 0;
System\Windows\Controls\ToolBar.cs (1)
553extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
System\Windows\Controls\VirtualizingStackPanel.cs (10)
5452cacheBeforeSize = Math.Max(0, cacheBeforeSize - inset.Bottom); 6498DoubleUtil.AreClose(oldInset.Bottom, inset.Bottom) ); 6509AreInsetsClose(oldInset.Bottom, inset.Bottom))) ); 6613return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom); 7128: new Size(childDesiredSize.Width, Math.Max(inset.Bottom,0)); 7648inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom); 12969writer.Write(thickness.Bottom);
System\Windows\Documents\Block.cs (4)
534if (Double.IsNaN(t.Left) || Double.IsNaN(t.Right) || Double.IsNaN(t.Top) || Double.IsNaN(t.Bottom)) 551if (!Double.IsNaN(t.Bottom) && (t.Bottom < 0 || t.Bottom > maxThickness))
System\Windows\Documents\FlowDocument.cs (1)
1020if (double.IsNaN(pageMargin.Bottom))
System\Windows\Documents\Paragraph.cs (1)
236return (Double.IsNaN(margin.Left) && Double.IsNaN(margin.Right) && Double.IsNaN(margin.Top) && Double.IsNaN(margin.Bottom));
System\Windows\Documents\TextRange.cs (1)
1665((Thickness)value).Right, ((Thickness)value).Top, ((Thickness)value).Left, ((Thickness)value).Bottom);
System\Windows\Documents\TextRangeEdit.cs (5)
1064double bottomMargin = newThickness.Bottom < 0 1065? currentThickness.Bottom 1066: GetNewDoubleValue(null, currentThickness.Bottom, newThickness.Bottom, propertyValueAction); 1237/*bottom:*/((Thickness)value).Bottom);
System\Windows\Documents\TextRangeEditTables.cs (1)
1290if (border.Right != borderRight || border.Bottom != borderBottom)
System\Windows\FrameworkElement.cs (3)
4319double marginHeight = margin.Top + margin.Bottom; 4569double marginHeight = margin.Top + margin.Bottom; 4926double marginHeight = margin.Top + margin.Bottom;
System\Windows\Input\KeyboardNavigation.cs (1)
2382double height = uiElement.RenderSize.Height + deflateThickness.Top + deflateThickness.Bottom;
System\Windows\Shell\WindowChromeWorker.cs (7)
325templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 425rcClientArea.Bottom -= (int)windowResizeBorderThicknessDevice.Bottom; 987deviceGlassThickness.Bottom -= windowResizeBorderThicknessDevice.Bottom; 988deviceGlassThickness.Bottom = Math.Max(0, deviceGlassThickness.Bottom); 1003cyBottomHeight = (int)Math.Ceiling(deviceGlassThickness.Bottom), 1034else if (mousePosition.Y < windowPosition.Bottom && mousePosition.Y >= windowPosition.Bottom - (int)_chromeInfo.ResizeBorderThickness.Bottom) 1086logicalSize.Height - resizeBorderThickness.Bottom);
System\Windows\Standard\DpiHelper.cs (1)
76Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
System\Windows\Standard\Utilities.cs (1)
259if (!IsDoubleFiniteAndNonNegative(thickness.Bottom))
System\Windows\Thickness.cs (8)
126&& DoubleUtil.IsZero(Bottom); 136&& DoubleUtil.AreClose(Left, Bottom); 153if(Left < 0d || Right < 0d || Top < 0d || Bottom < 0d) 159if(double.IsNaN(Left) || double.IsNaN(Right) || double.IsNaN(Top) || double.IsNaN(Bottom)) 165if(Double.IsPositiveInfinity(Left) || Double.IsPositiveInfinity(Right) || Double.IsPositiveInfinity(Top) || Double.IsPositiveInfinity(Bottom)) 173if(Double.IsNegativeInfinity(Left) || Double.IsNegativeInfinity(Right) || Double.IsNegativeInfinity(Top) || Double.IsNegativeInfinity(Bottom)) 194&& DoubleUtil.AreClose(Bottom, thickness.Bottom));
System\Windows\ThicknessConverter.cs (2)
134return new InstanceDescriptor(ci, new object[] { thickness.Left, thickness.Top, thickness.Right, thickness.Bottom }); 177LengthConverter.FormatLengthAsString(th.Bottom, ref handler);
System\Windows\Window.cs (2)
6682|| margin.Top + margin.Bottom >= logicalClientRc.Height) 6691LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom)));
PresentationFramework.Aero (9)
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
208double borderY = border.Top + border.Bottom; 269double borderY = border.Top + border.Bottom; 307double borderY = border.Top + border.Bottom; 315border.Top == 1.0 && border.Bottom == 1.0; 488borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false)); 489borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Bottom - thickness.Bottom), false));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
198childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 234double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Aero2 (9)
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
208double borderY = border.Top + border.Bottom; 269double borderY = border.Top + border.Bottom; 307double borderY = border.Top + border.Bottom; 315border.Top == 1.0 && border.Bottom == 1.0; 488borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false)); 489borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Bottom - thickness.Bottom), false));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
198childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 234double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.AeroLite (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
198childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 234double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Classic (26)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (23)
571thickness.Bottom >= 0 && !double.IsPositiveInfinity(thickness.Bottom)); 592return new Size(th.Left + th.Right, th.Top + th.Bottom); 601Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 711double borderHeight = border.Top + border.Bottom; 741return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s); 848yLines = GetPixelSnappingGuidelines(height, singleThickness.Top, singleThickness.Bottom, (int)classicThickness); 966if (borderThickness.Bottom > 0.0) 968dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Bottom - borderThickness.Bottom, bounds.Width, borderThickness.Bottom)); 982DrawBorder(shadow, new Thickness(0, 0, singleThickness.Right, singleThickness.Bottom), dc, ref bounds); 991if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1001if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1010if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1020if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1031if (bounds.Height < singleThickness.Top + singleThickness.Bottom) 1035dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Left, bounds.Bottom - singleThickness.Bottom, bounds.Width, singleThickness.Bottom)); 1038bounds.Height -= singleThickness.Top + singleThickness.Bottom; 1292if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1300if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1308if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1317if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom))
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
198childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 234double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Luna (8)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
238totalPadding = padding.Top + padding.Bottom;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
187double borderY = isRound ? 2.0 : thickness.Top + thickness.Bottom; 202thickness.Top == 1.0 && thickness.Bottom == 1.0; 214Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 456Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
198childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 234double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Royale (8)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
220totalPadding = padding.Top + padding.Bottom;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
187double borderY = isRound ? 2.0 : thickness.Top + thickness.Bottom; 202thickness.Top == 1.0 && thickness.Bottom == 1.0; 214Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 456Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
198childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 234double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
446ribbonTabHeader.Padding = new Thickness(leftPadding, ribbonTabHeader.DefaultPadding.Top, rightPadding, ribbonTabHeader.DefaultPadding.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
438PartToggleButton.BorderThickness = new Thickness(BorderThickness.Left, 0.0, BorderThickness.Right, BorderThickness.Bottom); 451PartToggleButton.BorderThickness = new Thickness(0.0, BorderThickness.Top, BorderThickness.Right, BorderThickness.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (2)
296_highlightLeftBorder.BorderThickness = new Thickness(BorderThickness.Left, BorderThickness.Top, 0.0, BorderThickness.Bottom); 301_highlightRightBorder.BorderThickness = new Thickness(0.0, BorderThickness.Top, BorderThickness.Right, BorderThickness.Bottom);
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
302ToBoundedInt(thickness.Bottom));