17 writes to Bottom
PresentationFramework (11)
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
238pageMargin.Bottom = lineHeight;
MS\Internal\Helper.cs (2)
1174itemsCorrectionFactor.Bottom = parentRect.Bottom - itemsRect.Bottom; 1189itemsCorrectionFactor.Bottom = 0;
MS\Internal\PtsHost\ParagraphVisual.cs (1)
76_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)
1015pageMargin.Bottom = lineHeight;
System\Windows\Documents\TextRangeEditTables.cs (1)
1296border.Bottom = borderBottom;
System\Windows\Shell\WindowChromeWorker.cs (3)
324templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 986deviceGlassThickness.Bottom -= windowResizeBorderThicknessDevice.Bottom; 987deviceGlassThickness.Bottom = Math.Max(0, deviceGlassThickness.Bottom);
PresentationFramework.Aero (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
274padding.Bottom -= 1.0;
PresentationFramework.Aero2 (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
274padding.Bottom -= 1.0;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
274padding.Bottom -= 1.0;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
274padding.Bottom -= 1.0;
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
274padding.Bottom -= 1.0;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
274padding.Bottom -= 1.0;
193 references to Bottom
PresentationFramework (124)
MS\Internal\AnimatedTypeHelpers.cs (11)
40InterpolateDouble(from.Bottom, to.Bottom, progress)); 58AddDouble(value1.Bottom, value2.Bottom)); 71value1.Bottom - value2.Bottom); 89+ Math.Pow(GetSegmentLengthDouble(from.Bottom, to.Bottom), 2.0); 109ScaleDouble(value.Bottom, factor)); 132|| IsValidAnimationValueDouble(value.Bottom)) 155GetZeroValueDouble(baseValue.Bottom));
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
236if (double.IsNaN(pageMargin.Bottom))
MS\Internal\Helper.cs (7)
1099itemPixelSize.Height += correctionFactor.Bottom; 1112itemPixelSizeBeforeViewport.Height += correctionFactor.Bottom; 1124itemPixelSizeInViewport.Height += correctionFactor.Bottom; 1135itemPixelSizeAfterViewport.Height += correctionFactor.Bottom; 1182if (itemsCorrectionFactor.Bottom < 0) 1196DoubleUtil.AreClose(itemsCorrectionFactor.Bottom, oldItemsCorrectionFactor.Bottom)))
MS\Internal\PtsHost\FigureHelper.cs (2)
136value = (structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value; 179value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom));
MS\Internal\PtsHost\FigureParagraph.cs (1)
625maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
155pageSize.Height += pageMargin.Top + pageMargin.Bottom; 197pageSize.Height - (pageMargin.Top + pageMargin.Bottom))); 690size.Height += _pageMargin.Top + _pageMargin.Bottom;
MS\Internal\PtsHost\MarginCollapsingState.cs (1)
80if (!DoubleUtil.IsZero(mbp.Margin.Bottom))
MS\Internal\PtsHost\MbpInfo.cs (15)
140Double.IsNaN(mbp.Margin.Bottom) ? defaultMargin.Bottom : mbp.Margin.Bottom); 165Double.IsNaN(mbp.Padding.Bottom) ? defaultPadding.Bottom : mbp.Padding.Bottom); 197get { return TextDpi.ToTextDpi(_margin.Bottom) + TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 229get { return TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 261get { return TextDpi.ToTextDpi(_border.Bottom); } 293get { return TextDpi.ToTextDpi(_margin.Bottom); } 339Double.IsNaN(_padding.Bottom)); 354Double.IsNaN(_margin.Bottom));
MS\Internal\PtsHost\ParagraphVisual.cs (3)
135if (DoubleUtil.GreaterThanZero(_borderThickness.Bottom)) 140Thickness = _borderThickness.Bottom 158new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
MS\Internal\PtsHost\Section.cs (1)
118fsrcMargin.dv = dvrPage - TextDpi.ToTextDpi(pageMargin.Top + pageMargin.Bottom);
MS\Internal\PtsHost\StructuralCache.cs (1)
765PageSize.Height - PageMargin.Top - PageMargin.Bottom)); } }
MS\Internal\PtsHost\SubpageParaClient.cs (2)
79mbp.Border = new Thickness(mbp.Border.Left, 0.0, mbp.Border.Right, mbp.Border.Bottom); 80mbp.Padding = new Thickness(mbp.Padding.Left, 0.0, mbp.Padding.Right, mbp.Padding.Bottom);
MS\Internal\PtsHost\UIElementParagraph.cs (1)
429elementHeight = 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)
216UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 263UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 532if (DoubleUtil.GreaterThanZero(border.Bottom)) 543pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY); 547pen.Thickness = border.Bottom; 581UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 586RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY)); 592ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom); 626return new Size(th.Left + th.Right, th.Top + th.Bottom); 643Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 943double bottom = 0.5 * borders.Bottom;
System\Windows\Controls\Control.cs (1)
378&& t.Bottom >= 0.0d);
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
180delta += margin.Bottom;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
590Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom));
System\Windows\Controls\Primitives\TabPanel.cs (2)
204Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom), 261double bottomOffset = margin.Bottom;
System\Windows\Controls\SinglePageViewer.cs (1)
705Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom));
System\Windows\Controls\TextBlock.cs (6)
1260Math.Max(0.0, constraint.Height - (padding.Top + padding.Bottom))); 1332desiredSize.Height += (padding.Top + padding.Bottom); 1522double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 1957Math.Max(0.0, _referenceSize.Height - (padding.Top + padding.Bottom))); 3097Math.Max(0.0, computedSize.Height - (padding.Top + padding.Bottom))); 3146double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
System\Windows\Controls\TextRangeAdaptor.cs (1)
318return margin.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(margin.Bottom) : 0;
System\Windows\Controls\ToolBar.cs (1)
546extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
System\Windows\Controls\VirtualizingStackPanel.cs (10)
5428cacheBeforeSize = Math.Max(0, cacheBeforeSize - inset.Bottom); 6474DoubleUtil.AreClose(oldInset.Bottom, inset.Bottom) ); 6485AreInsetsClose(oldInset.Bottom, inset.Bottom))) ); 6589return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom); 7106: new Size(childDesiredSize.Width, Math.Max(inset.Bottom,0)); 7626inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom); 12939writer.Write(thickness.Bottom);
System\Windows\Documents\Block.cs (4)
533if (Double.IsNaN(t.Left) || Double.IsNaN(t.Right) || Double.IsNaN(t.Top) || Double.IsNaN(t.Bottom)) 550if (!Double.IsNaN(t.Bottom) && (t.Bottom < 0 || t.Bottom > maxThickness))
System\Windows\Documents\FlowDocument.cs (1)
1013if (double.IsNaN(pageMargin.Bottom))
System\Windows\Documents\Paragraph.cs (1)
235return (Double.IsNaN(margin.Left) && Double.IsNaN(margin.Right) && Double.IsNaN(margin.Top) && Double.IsNaN(margin.Bottom));
System\Windows\Documents\TextRange.cs (1)
1657((Thickness)value).Right, ((Thickness)value).Top, ((Thickness)value).Left, ((Thickness)value).Bottom);
System\Windows\Documents\TextRangeEdit.cs (5)
1063double bottomMargin = newThickness.Bottom < 0 1064? currentThickness.Bottom 1065: GetNewDoubleValue(null, currentThickness.Bottom, newThickness.Bottom, propertyValueAction); 1236/*bottom:*/((Thickness)value).Bottom);
System\Windows\Documents\TextRangeEditTables.cs (1)
1293if (border.Right != borderRight || border.Bottom != borderBottom)
System\Windows\FrameworkElement.cs (3)
4309double marginHeight = margin.Top + margin.Bottom; 4559double marginHeight = margin.Top + margin.Bottom; 4918double marginHeight = margin.Top + margin.Bottom;
System\Windows\Input\KeyboardNavigation.cs (1)
2380double height = uiElement.RenderSize.Height + deflateThickness.Top + deflateThickness.Bottom;
System\Windows\Shell\WindowChromeWorker.cs (7)
324templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 424rcClientArea.Bottom -= (int)windowResizeBorderThicknessDevice.Bottom; 986deviceGlassThickness.Bottom -= windowResizeBorderThicknessDevice.Bottom; 987deviceGlassThickness.Bottom = Math.Max(0, deviceGlassThickness.Bottom); 1002cyBottomHeight = (int)Math.Ceiling(deviceGlassThickness.Bottom), 1033else if (mousePosition.Y < windowPosition.Bottom && mousePosition.Y >= windowPosition.Bottom - (int)_chromeInfo.ResizeBorderThickness.Bottom) 1085logicalSize.Height - resizeBorderThickness.Bottom);
System\Windows\Standard\DpiHelper.cs (1)
75Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
System\Windows\Standard\Utilities.cs (1)
258if (!IsDoubleFiniteAndNonNegative(thickness.Bottom))
System\Windows\Thickness.cs (8)
124&& DoubleUtil.IsZero(Bottom); 134&& DoubleUtil.AreClose(Left, Bottom); 151if(Left < 0d || Right < 0d || Top < 0d || Bottom < 0d) 157if(double.IsNaN(Left) || double.IsNaN(Right) || double.IsNaN(Top) || double.IsNaN(Bottom)) 163if(Double.IsPositiveInfinity(Left) || Double.IsPositiveInfinity(Right) || Double.IsPositiveInfinity(Top) || Double.IsPositiveInfinity(Bottom)) 171if(Double.IsNegativeInfinity(Left) || Double.IsNegativeInfinity(Right) || Double.IsNegativeInfinity(Top) || Double.IsNegativeInfinity(Bottom)) 192&& DoubleUtil.AreClose(Bottom, thickness.Bottom));
System\Windows\ThicknessConverter.cs (2)
131return new InstanceDescriptor(ci, new object[] { thickness.Left, thickness.Top, thickness.Right, thickness.Bottom }); 174LengthConverter.FormatLengthAsString(th.Bottom, ref handler);
System\Windows\Window.cs (2)
6663|| margin.Top + margin.Bottom >= logicalClientRc.Height) 6672LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom)));
PresentationFramework.Aero (9)
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
209double borderY = border.Top + border.Bottom; 270double borderY = border.Top + border.Bottom; 305double borderY = border.Top + border.Bottom; 313border.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)
197childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 204return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Aero2 (9)
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
209double borderY = border.Top + border.Bottom; 270double borderY = border.Top + border.Bottom; 305double borderY = border.Top + border.Bottom; 313border.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)
197childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 204return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double 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)
197childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 204return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Classic (26)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (23)
572thickness.Bottom >= 0 && !double.IsPositiveInfinity(thickness.Bottom)); 593return new Size(th.Left + th.Right, th.Top + th.Bottom); 602Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 712double borderHeight = border.Top + border.Bottom; 742return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s); 849yLines = 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; 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))
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
197childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 204return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Luna (8)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
237totalPadding = padding.Top + padding.Bottom;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
184double borderY = isRound ? 2.0 : thickness.Top + thickness.Bottom; 199thickness.Top == 1.0 && thickness.Bottom == 1.0; 211Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 453Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
197childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 204return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Royale (8)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
219totalPadding = padding.Top + padding.Bottom;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
184double borderY = isRound ? 2.0 : thickness.Top + thickness.Bottom; 199thickness.Top == 1.0 && thickness.Bottom == 1.0; 211Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 453Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
197childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 204return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
445ribbonTabHeader.Padding = new Thickness(leftPadding, ribbonTabHeader.DefaultPadding.Top, rightPadding, ribbonTabHeader.DefaultPadding.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
428PartToggleButton.BorderThickness = new Thickness(BorderThickness.Left, 0.0, BorderThickness.Right, BorderThickness.Bottom); 441PartToggleButton.BorderThickness = new Thickness(0.0, BorderThickness.Top, BorderThickness.Right, BorderThickness.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (2)
294_highlightLeftBorder.BorderThickness = new Thickness(BorderThickness.Left, BorderThickness.Top, 0.0, BorderThickness.Bottom); 299_highlightRightBorder.BorderThickness = new Thickness(0.0, BorderThickness.Top, BorderThickness.Right, BorderThickness.Bottom);
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
302ToBoundedInt(thickness.Bottom));