17 writes to Bottom
PresentationFramework (11)
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
242pageMargin.Bottom = lineHeight;
MS\Internal\Helper.cs (2)
1190itemsCorrectionFactor.Bottom = parentRect.Bottom - itemsRect.Bottom; 1205itemsCorrectionFactor.Bottom = 0;
MS\Internal\PtsHost\ParagraphVisual.cs (1)
78_borderThickness.Bottom = 0.0;
MS\Internal\Text\TextDpi.cs (2)
173if (pageMargin.Top >= pageSize.Height) { pageMargin.Bottom = 0.0; } 176pageMargin.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)
1295border.Bottom = borderBottom;
System\Windows\Shell\WindowChromeWorker.cs (3)
330templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 992deviceGlassThickness.Bottom -= windowResizeBorderThicknessDevice.Bottom; 993deviceGlassThickness.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)
44InterpolateDouble(from.Bottom, to.Bottom, progress)); 62AddDouble(value1.Bottom, value2.Bottom)); 75value1.Bottom - value2.Bottom); 93+ Math.Pow(GetSegmentLengthDouble(from.Bottom, to.Bottom), 2.0); 113ScaleDouble(value.Bottom, factor)); 136|| IsValidAnimationValueDouble(value.Bottom)) 159GetZeroValueDouble(baseValue.Bottom));
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
240if (double.IsNaN(pageMargin.Bottom))
MS\Internal\Helper.cs (7)
1115itemPixelSize.Height += correctionFactor.Bottom; 1128itemPixelSizeBeforeViewport.Height += correctionFactor.Bottom; 1140itemPixelSizeInViewport.Height += correctionFactor.Bottom; 1151itemPixelSizeAfterViewport.Height += correctionFactor.Bottom; 1198if (itemsCorrectionFactor.Bottom < 0) 1212DoubleUtil.AreClose(itemsCorrectionFactor.Bottom, oldItemsCorrectionFactor.Bottom)))
MS\Internal\PtsHost\FigureHelper.cs (2)
146value = (structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value; 189value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom));
MS\Internal\PtsHost\FigureParagraph.cs (1)
641maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
164pageSize.Height += pageMargin.Top + pageMargin.Bottom; 206pageSize.Height - (pageMargin.Top + pageMargin.Bottom))); 699size.Height += _pageMargin.Top + _pageMargin.Bottom;
MS\Internal\PtsHost\MarginCollapsingState.cs (1)
84if (!DoubleUtil.IsZero(mbp.Margin.Bottom))
MS\Internal\PtsHost\MbpInfo.cs (15)
143Double.IsNaN(mbp.Margin.Bottom) ? defaultMargin.Bottom : mbp.Margin.Bottom); 168Double.IsNaN(mbp.Padding.Bottom) ? defaultPadding.Bottom : mbp.Padding.Bottom); 200get { return TextDpi.ToTextDpi(_margin.Bottom) + TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 232get { return TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 264get { return TextDpi.ToTextDpi(_border.Bottom); } 296get { return TextDpi.ToTextDpi(_margin.Bottom); } 342Double.IsNaN(_padding.Bottom)); 357Double.IsNaN(_margin.Bottom));
MS\Internal\PtsHost\ParagraphVisual.cs (3)
131if (DoubleUtil.GreaterThanZero(_borderThickness.Bottom)) 135pen.Thickness = _borderThickness.Bottom; 152new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
MS\Internal\PtsHost\Section.cs (1)
121fsrcMargin.dv = dvrPage - TextDpi.ToTextDpi(pageMargin.Top + pageMargin.Bottom);
MS\Internal\PtsHost\StructuralCache.cs (1)
772PageSize.Height - PageMargin.Top - PageMargin.Bottom)); } }
MS\Internal\PtsHost\SubpageParaClient.cs (2)
85mbp.Border = new Thickness(mbp.Border.Left, 0.0, mbp.Border.Right, mbp.Border.Bottom); 86mbp.Padding = new Thickness(mbp.Padding.Left, 0.0, mbp.Padding.Right, mbp.Padding.Bottom);
MS\Internal\PtsHost\UIElementParagraph.cs (1)
427elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
MS\Internal\Text\TextDpi.cs (2)
174if (pageMargin.Top + pageMargin.Bottom >= pageSize.Height) 177if (pageMargin.Top + pageMargin.Bottom >= pageSize.Height)
System\Windows\Controls\Border.cs (11)
221UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 268UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 531if (DoubleUtil.GreaterThanZero(border.Bottom)) 540pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY); 544pen.Thickness = border.Bottom; 578UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 583RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY)); 589ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom); 623return new Size(th.Left + th.Right, th.Top + th.Bottom); 640Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 940double bottom = 0.5 * borders.Bottom;
System\Windows\Controls\Control.cs (1)
388&& t.Bottom >= 0.0d);
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
184delta += margin.Bottom;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
595Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom));
System\Windows\Controls\Primitives\TabPanel.cs (2)
212desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom); 268double bottomOffset = margin.Bottom;
System\Windows\Controls\SinglePageViewer.cs (1)
707Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom));
System\Windows\Controls\TextBlock.cs (6)
1276Math.Max(0.0, constraint.Height - (padding.Top + padding.Bottom))); 1348desiredSize.Height += (padding.Top + padding.Bottom); 1541double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 1979Math.Max(0.0, _referenceSize.Height - (padding.Top + padding.Bottom))); 3117Math.Max(0.0, computedSize.Height - (padding.Top + padding.Bottom))); 3166double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
System\Windows\Controls\TextRangeAdaptor.cs (1)
321return margin.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(margin.Bottom) : 0;
System\Windows\Controls\ToolBar.cs (1)
562extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
System\Windows\Controls\VirtualizingStackPanel.cs (10)
5457cacheBeforeSize = Math.Max(0, cacheBeforeSize - inset.Bottom); 6503DoubleUtil.AreClose(oldInset.Bottom, inset.Bottom) ); 6514AreInsetsClose(oldInset.Bottom, inset.Bottom))) ); 6618return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom); 7133: new Size(childDesiredSize.Width, Math.Max(inset.Bottom,0)); 7653inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom); 12974writer.Write(thickness.Bottom);
System\Windows\Documents\Block.cs (4)
536if (Double.IsNaN(t.Left) || Double.IsNaN(t.Right) || Double.IsNaN(t.Top) || Double.IsNaN(t.Bottom)) 553if (!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)
1668((Thickness)value).Right, ((Thickness)value).Top, ((Thickness)value).Left, ((Thickness)value).Bottom);
System\Windows\Documents\TextRangeEdit.cs (5)
1066double bottomMargin = newThickness.Bottom < 0 1067? currentThickness.Bottom 1068: GetNewDoubleValue(null, currentThickness.Bottom, newThickness.Bottom, propertyValueAction); 1239/*bottom:*/((Thickness)value).Bottom);
System\Windows\Documents\TextRangeEditTables.cs (1)
1292if (border.Right != borderRight || border.Bottom != borderBottom)
System\Windows\FrameworkElement.cs (3)
4330double marginHeight = margin.Top + margin.Bottom; 4580double marginHeight = margin.Top + margin.Bottom; 4937double marginHeight = margin.Top + margin.Bottom;
System\Windows\Input\KeyboardNavigation.cs (1)
2392double height = uiElement.RenderSize.Height + deflateThickness.Top + deflateThickness.Bottom;
System\Windows\Shell\WindowChromeWorker.cs (7)
330templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 430rcClientArea.Bottom -= (int)windowResizeBorderThicknessDevice.Bottom; 992deviceGlassThickness.Bottom -= windowResizeBorderThicknessDevice.Bottom; 993deviceGlassThickness.Bottom = Math.Max(0, deviceGlassThickness.Bottom); 1008cyBottomHeight = (int)Math.Ceiling(deviceGlassThickness.Bottom), 1039else if (mousePosition.Y < windowPosition.Bottom && mousePosition.Y >= windowPosition.Bottom - (int)_chromeInfo.ResizeBorderThickness.Bottom) 1091logicalSize.Height - resizeBorderThickness.Bottom);
System\Windows\Standard\DpiHelper.cs (1)
78Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
System\Windows\Standard\Utilities.cs (1)
268if (!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)
139return new InstanceDescriptor(ci, new object[] { thickness.Left, thickness.Top, thickness.Right, thickness.Bottom }); 182LengthConverter.FormatLengthAsString(th.Bottom, ref handler);
System\Windows\Window.cs (2)
6695|| margin.Top + margin.Bottom >= logicalClientRc.Height) 6704LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom)));
PresentationFramework.Aero (9)
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
214double borderY = border.Top + border.Bottom; 275double borderY = border.Top + border.Bottom; 313double borderY = border.Top + border.Bottom; 321border.Top == 1.0 && border.Bottom == 1.0; 494borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false)); 495borderFigure.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)
214double borderY = border.Top + border.Bottom; 275double borderY = border.Top + border.Bottom; 313double borderY = border.Top + border.Bottom; 321border.Top == 1.0 && border.Bottom == 1.0; 494borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false)); 495borderFigure.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)
574thickness.Bottom >= 0 && !double.IsPositiveInfinity(thickness.Bottom)); 595return new Size(th.Left + th.Right, th.Top + th.Bottom); 604Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 714double borderHeight = border.Top + border.Bottom; 744return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s); 851yLines = GetPixelSnappingGuidelines(height, singleThickness.Top, singleThickness.Bottom, (int)classicThickness); 969if (borderThickness.Bottom > 0.0) 971dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Bottom - borderThickness.Bottom, bounds.Width, borderThickness.Bottom)); 985DrawBorder(shadow, new Thickness(0, 0, singleThickness.Right, singleThickness.Bottom), 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) 1038dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Left, bounds.Bottom - singleThickness.Bottom, bounds.Width, singleThickness.Bottom)); 1041bounds.Height -= singleThickness.Top + singleThickness.Bottom; 1295if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1303if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1311if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1320if (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)
242totalPadding = padding.Top + padding.Bottom;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
191double borderY = isRound ? 2.0 : thickness.Top + thickness.Bottom; 206thickness.Top == 1.0 && thickness.Bottom == 1.0; 218Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 460Math.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)
224totalPadding = padding.Top + padding.Bottom;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
191double borderY = isRound ? 2.0 : thickness.Top + thickness.Bottom; 206thickness.Top == 1.0 && thickness.Bottom == 1.0; 218Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 460Math.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)
449ribbonTabHeader.Padding = new Thickness(leftPadding, ribbonTabHeader.DefaultPadding.Top, rightPadding, ribbonTabHeader.DefaultPadding.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
440PartToggleButton.BorderThickness = new Thickness(BorderThickness.Left, 0.0, BorderThickness.Right, BorderThickness.Bottom); 453PartToggleButton.BorderThickness = new Thickness(0.0, BorderThickness.Top, BorderThickness.Right, BorderThickness.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (2)
299_highlightLeftBorder.BorderThickness = new Thickness(BorderThickness.Left, BorderThickness.Top, 0.0, BorderThickness.Bottom); 304_highlightRightBorder.BorderThickness = new Thickness(0.0, BorderThickness.Top, BorderThickness.Right, BorderThickness.Bottom);
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
305ToBoundedInt(thickness.Bottom));