18 writes to Bottom
PresentationFramework (14)
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
247pageMargin.Bottom = lineHeight;
src\Framework\MS\Internal\Helper.cs (2)
1206itemsCorrectionFactor.Bottom = parentRect.Bottom - itemsRect.Bottom; 1221itemsCorrectionFactor.Bottom = 0;
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (1)
83_borderThickness.Bottom = 0.0;
src\Framework\MS\Internal\Text\TextDpi.cs (2)
176if (pageMargin.Top >= pageSize.Height) { pageMargin.Bottom = 0.0; } 179pageMargin.Bottom = Math.Max(0.0, pageSize.Height - pageMargin.Top - _minSize);;
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1030pageMargin.Bottom = lineHeight;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1298border.Bottom = borderBottom;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (6)
424templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 469templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Top; 478templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 485templateFixupMargin.Bottom -= SystemParameters.WindowCaptionHeight; 1410deviceGlassThickness.Bottom -= windowResizeBorderThicknessDevice.Bottom; 1411deviceGlassThickness.Bottom = Math.Max(0, deviceGlassThickness.Bottom);
PresentationFramework.Aero (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
277padding.Bottom -= 1.0;
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
277padding.Bottom -= 1.0;
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
277padding.Bottom -= 1.0;
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
277padding.Bottom -= 1.0;
180 references to Bottom
PresentationFramework (124)
src\Framework\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));
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
245if (DoubleUtil.IsNaN(pageMargin.Bottom))
src\Framework\MS\Internal\Helper.cs (7)
1131itemPixelSize.Height += correctionFactor.Bottom; 1144itemPixelSizeBeforeViewport.Height += correctionFactor.Bottom; 1156itemPixelSizeInViewport.Height += correctionFactor.Bottom; 1167itemPixelSizeAfterViewport.Height += correctionFactor.Bottom; 1214if (itemsCorrectionFactor.Bottom < 0) 1228DoubleUtil.AreClose(itemsCorrectionFactor.Bottom, oldItemsCorrectionFactor.Bottom)))
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (2)
150value = (structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom) * figureLength.Value; 193value = Math.Max(1, Math.Min(value, structuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom));
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (1)
663maxTotalHeight = StructuralCache.CurrentFormatContext.PageHeight - pageMargin.Top - pageMargin.Bottom;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (3)
166pageSize.Height += pageMargin.Top + pageMargin.Bottom; 208pageSize.Height - (pageMargin.Top + pageMargin.Bottom))); 720size.Height += _pageMargin.Top + _pageMargin.Bottom;
src\Framework\MS\Internal\PtsHost\MarginCollapsingState.cs (1)
87if (!DoubleUtil.IsZero(mbp.Margin.Bottom))
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (15)
144Double.IsNaN(mbp.Margin.Bottom) ? defaultMargin.Bottom : mbp.Margin.Bottom); 169Double.IsNaN(mbp.Padding.Bottom) ? defaultPadding.Bottom : mbp.Padding.Bottom); 201get { return TextDpi.ToTextDpi(_margin.Bottom) + TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 233get { return TextDpi.ToTextDpi(_border.Bottom) + TextDpi.ToTextDpi(_padding.Bottom); } 265get { return TextDpi.ToTextDpi(_border.Bottom); } 297get { return TextDpi.ToTextDpi(_margin.Bottom); } 343Double.IsNaN(_padding.Bottom)); 358Double.IsNaN(_margin.Bottom));
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (3)
136if (DoubleUtil.GreaterThan(_borderThickness.Bottom, 0)) 140pen.Thickness = _borderThickness.Bottom; 157new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
src\Framework\MS\Internal\PtsHost\Section.cs (1)
125fsrcMargin.dv = dvrPage - TextDpi.ToTextDpi(pageMargin.Top + pageMargin.Bottom);
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (1)
776PageSize.Height - PageMargin.Top - PageMargin.Bottom)); } }
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (2)
104mbp.Border = new Thickness(mbp.Border.Left, 0.0, mbp.Border.Right, mbp.Border.Bottom); 105mbp.Padding = new Thickness(mbp.Padding.Left, 0.0, mbp.Padding.Right, mbp.Padding.Bottom);
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (1)
426elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom);
src\Framework\MS\Internal\Text\TextDpi.cs (2)
177if (pageMargin.Top + pageMargin.Bottom >= pageSize.Height) 180if (pageMargin.Top + pageMargin.Bottom >= pageSize.Height)
src\Framework\System\Windows\Controls\Border.cs (11)
228UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 275UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 540if (DoubleUtil.GreaterThan(border.Bottom, 0)) 549pen.Thickness = UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY); 553pen.Thickness = border.Bottom; 587UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 592RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY)); 598ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom); 632return new Size(th.Left + th.Right, th.Top + th.Bottom); 649Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 949double bottom = 0.5 * borders.Bottom;
src\Framework\System\Windows\Controls\Control.cs (1)
389&& t.Bottom >= 0.0d);
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
185delta += margin.Bottom;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
596Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom));
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (2)
213desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom); 269double bottomOffset = margin.Bottom;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
714Math.Max(ia.MediaSizeHeight - (ia.OriginHeight + ia.ExtentHeight), pagePadding.Bottom));
src\Framework\System\Windows\Controls\TextBlock.cs (6)
1354Math.Max(0.0, constraint.Height - (padding.Top + padding.Bottom))); 1426desiredSize.Height += (padding.Top + padding.Bottom); 1622double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 2068Math.Max(0.0, _referenceSize.Height - (padding.Top + padding.Bottom))); 3207Math.Max(0.0, computedSize.Height - (padding.Top + padding.Bottom))); 3256double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (1)
329return margin.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(margin.Bottom) : 0;
src\Framework\System\Windows\Controls\ToolBar.cs (1)
572extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (10)
5340cacheBeforeSize = Math.Max(0, cacheBeforeSize - inset.Bottom); 6365DoubleUtil.AreClose(oldInset.Bottom, inset.Bottom) ); 6376AreInsetsClose(oldInset.Bottom, inset.Bottom))) ); 6481return DoubleUtil.GreaterThanOrClose(inset.Top - margin.Top, inset.Bottom - margin.Bottom); 6993: new Size(childDesiredSize.Width, Math.Max(inset.Bottom,0)); 7513inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom); 12807writer.Write(thickness.Bottom);
src\Framework\System\Windows\Documents\Block.cs (4)
560if (Double.IsNaN(t.Left) || Double.IsNaN(t.Right) || Double.IsNaN(t.Top) || Double.IsNaN(t.Bottom)) 577if (!Double.IsNaN(t.Bottom) && (t.Bottom < 0 || t.Bottom > maxThickness))
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1028if (DoubleUtil.IsNaN(pageMargin.Bottom))
src\Framework\System\Windows\Documents\Paragraph.cs (1)
243return (Double.IsNaN(margin.Left) && Double.IsNaN(margin.Right) && Double.IsNaN(margin.Top) && Double.IsNaN(margin.Bottom));
src\Framework\System\Windows\Documents\TextRange.cs (1)
1665((Thickness)value).Right, ((Thickness)value).Top, ((Thickness)value).Left, ((Thickness)value).Bottom);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (5)
1068double bottomMargin = newThickness.Bottom < 0 1069? currentThickness.Bottom 1070: GetNewDoubleValue(null, currentThickness.Bottom, newThickness.Bottom, propertyValueAction); 1241/*bottom:*/((Thickness)value).Bottom);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1295if (border.Right != borderRight || border.Bottom != borderBottom)
src\Framework\System\Windows\FrameworkElement.cs (3)
4329double marginHeight = margin.Top + margin.Bottom; 4576double marginHeight = margin.Top + margin.Bottom; 4932double marginHeight = margin.Top + margin.Bottom;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
2479double height = uiElement.RenderSize.Height + deflateThickness.Top + deflateThickness.Bottom;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (7)
424templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 478templateFixupMargin.Bottom -= SystemParameters.WindowResizeBorderThickness.Bottom; 707rcClientArea.Bottom -= (int)windowResizeBorderThicknessDevice.Bottom; 1410deviceGlassThickness.Bottom -= windowResizeBorderThicknessDevice.Bottom; 1411deviceGlassThickness.Bottom = Math.Max(0, deviceGlassThickness.Bottom); 1426cyBottomHeight = (int)Math.Ceiling(deviceGlassThickness.Bottom), 1457else if (mousePosition.Y < windowPosition.Bottom && mousePosition.Y >= windowPosition.Bottom - (int)_chromeInfo.ResizeBorderThickness.Bottom)
src\Framework\System\Windows\Standard\DpiHelper.cs (1)
78Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\Standard\Utilities.cs (1)
293if (!IsDoubleFiniteAndNonNegative(thickness.Bottom))
src\Framework\System\Windows\Thickness.cs (8)
131&& DoubleUtil.IsZero(Bottom); 141&& DoubleUtil.AreClose(Left, Bottom); 158if(Left < 0d || Right < 0d || Top < 0d || Bottom < 0d) 164if(DoubleUtil.IsNaN(Left) || DoubleUtil.IsNaN(Right) || DoubleUtil.IsNaN(Top) || DoubleUtil.IsNaN(Bottom)) 170if(Double.IsPositiveInfinity(Left) || Double.IsPositiveInfinity(Right) || Double.IsPositiveInfinity(Top) || Double.IsPositiveInfinity(Bottom)) 178if(Double.IsNegativeInfinity(Left) || Double.IsNegativeInfinity(Right) || Double.IsNegativeInfinity(Top) || Double.IsNegativeInfinity(Bottom)) 199&& DoubleUtil.AreClose(Bottom, thickness.Bottom));
src\Framework\System\Windows\ThicknessConverter.cs (2)
161return new InstanceDescriptor(ci, new object[] { th.Left, th.Top, th.Right, th.Bottom }); 195sb.Append(LengthConverter.ToString(th.Bottom, cultureInfo));
src\Framework\System\Windows\Window.cs (2)
6988|| margin.Top + margin.Bottom >= logicalClientRc.Height) 6997LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom)));
PresentationFramework.Aero (9)
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
220double borderY = border.Top + border.Bottom; 281double borderY = border.Top + border.Bottom; 319double borderY = border.Top + border.Bottom; 327border.Top == 1.0 && border.Bottom == 1.0; 500borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false)); 501borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Bottom - thickness.Bottom), false));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
200childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Classic (26)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (23)
579thickness.Bottom >= 0 && !double.IsPositiveInfinity(thickness.Bottom)); 600return new Size(th.Left + th.Right, th.Top + th.Bottom); 609Math.Max(0.0, rt.Height - thick.Top - thick.Bottom)); 719double borderHeight = border.Top + border.Bottom; 749return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s); 856yLines = GetPixelSnappingGuidelines(height, singleThickness.Top, singleThickness.Bottom, (int)classicThickness); 974if (borderThickness.Bottom > 0.0) 976dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Bottom - borderThickness.Bottom, bounds.Width, borderThickness.Bottom)); 990DrawBorder(shadow, new Thickness(0, 0, singleThickness.Right, singleThickness.Bottom), dc, ref bounds); 999if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1009if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1018if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1028if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1039if (bounds.Height < singleThickness.Top + singleThickness.Bottom) 1043dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Left, bounds.Bottom - singleThickness.Bottom, bounds.Width, singleThickness.Bottom)); 1046bounds.Height -= singleThickness.Top + singleThickness.Bottom; 1300if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1308if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1316if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1325if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom))
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
200childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Luna (8)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
248totalPadding = padding.Top + padding.Bottom;
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
196double borderY = isRound ? 2.0 : thickness.Top + thickness.Bottom; 211thickness.Top == 1.0 && thickness.Bottom == 1.0; 223Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 465Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
200childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
PresentationFramework.Royale (8)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
230totalPadding = padding.Top + padding.Bottom;
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
196double borderY = isRound ? 2.0 : thickness.Top + thickness.Bottom; 211thickness.Top == 1.0 && thickness.Bottom == 1.0; 223Math.Max(0, bounds.Height - thickness.Top - thickness.Bottom)); 465Math.Max(0.0, rt.Height - thick.Top - thick.Bottom));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
200childHeight = Math.Max(0.0, childHeight - padding.Top - padding.Bottom); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (2)
904double dropButtonBottom = innerRect.Bottom - dropButtonInset.Bottom; 917double textAreaBottom = innerRect.Bottom - textAreaInset.Bottom;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (1)
118double parentHeight = parent.DesiredSize.Height - parent.Margin.Top - parent.Margin.Bottom;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (1)
32height = height - margin.Top - margin.Bottom;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
132Size childSize = new Size(frameworkChild.DesiredSize.Width - margin.Left - margin.Right, frameworkChild.DesiredSize.Height - margin.Top - margin.Bottom);