17 writes to Left
PresentationFramework (8)
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
230pageMargin.Left = lineHeight;
MS\Internal\PtsHost\MbpInfo.cs (1)
74thickness.Left = thickness.Right;
MS\Internal\Text\TextDpi.cs (1)
170pageMargin.Left = pageSize.Width - _minSize;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
6439inset.Left = headerDesiredSizes.PixelSize.Width + margin.Left;
System\Windows\Documents\FlowDocument.cs (1)
1010pageMargin.Left = lineHeight;
System\Windows\Shell\WindowChromeWorker.cs (3)
341templateFixupMargin.Left -= SystemParameters.WindowResizeBorderThickness.Left; 1232deviceGlassThickness.Left -= windowResizeBorderThicknessDevice.Left; 1233deviceGlassThickness.Left = Math.Max(0, deviceGlassThickness.Left);
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
281border.Left += 1.0;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Left += 1.0;
PresentationFramework.Aero2 (2)
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
281border.Left += 1.0;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Left += 1.0;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Left += 1.0;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Left += 1.0;
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Left += 1.0;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
272padding.Left += 1.0;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
129newPadding.Left += availableExtraWidth * 0.5;
251 references to Left
PresentationFramework (157)
MS\Internal\AnimatedTypeHelpers.cs (11)
41InterpolateDouble(from.Left, to.Left, progress), 59AddDouble(value1.Left, value2.Left), 72value1.Left - value2.Left, 90Math.Pow(GetSegmentLengthDouble(from.Left, to.Left), 2.0) 110ScaleDouble(value.Left, factor), 133if ( IsValidAnimationValueDouble(value.Left) 156GetZeroValueDouble(baseValue.Left),
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
228if (double.IsNaN(pageMargin.Left))
MS\Internal\Ink\InkCanvasSelection.cs (2)
464InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Left wasn't auto 475InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Both Left and Right were aut. Modify Left by default.
MS\Internal\PtsHost\FigureHelper.cs (1)
242double pageWidth = pageSize.Width - (pageMargin.Left + pageMargin.Right);
MS\Internal\PtsHost\FigureParagraph.cs (1)
603maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right;
MS\Internal\PtsHost\FlowDocumentPage.cs (8)
136if(!DoubleUtil.AreClose(_lastFormatWidth, pageSize.Width) || !DoubleUtil.AreClose(_pageMargin.Left, pageMargin.Left) || 163pageSize.Width += pageMargin.Left + pageMargin.Right; 166SetContentBox(new Rect(pageMargin.Left, pageMargin.Top, _ptsPage.CalculatedSize.Width, _ptsPage.CalculatedSize.Height)); 195double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(_structuralCache, pageSize.Width - (pageMargin.Left + pageMargin.Right)); 204SetContentBox(new Rect(pageMargin.Left, pageMargin.Top, 205pageSize.Width - (pageMargin.Left + pageMargin.Right), 698size.Width += _pageMargin.Left + _pageMargin.Right;
MS\Internal\PtsHost\MbpInfo.cs (16)
73double temp = thickness.Left; 140Double.IsNaN(mbp.Margin.Left) ? defaultMargin.Left : mbp.Margin.Left, 165Double.IsNaN(mbp.Padding.Left) ? defaultPadding.Left : mbp.Padding.Left, 176get { return TextDpi.ToTextDpi(_margin.Left) + TextDpi.ToTextDpi(_border.Left) + TextDpi.ToTextDpi(_padding.Left); } 208get { return TextDpi.ToTextDpi(_border.Left) + TextDpi.ToTextDpi(_padding.Left); } 240get { return TextDpi.ToTextDpi(_border.Left); } 272get { return TextDpi.ToTextDpi(_margin.Left); } 339Double.IsNaN(_padding.Left) || 354Double.IsNaN(_margin.Left) ||
MS\Internal\PtsHost\ParagraphVisual.cs (3)
91pen.Thickness = _borderThickness.Left; 103if (DoubleUtil.GreaterThanZero(_borderThickness.Left)) 151new Point(_renderBounds.Left + _borderThickness.Left, _renderBounds.Top + _borderThickness.Top),
MS\Internal\PtsHost\Section.cs (4)
118fsrcMargin.u = TextDpi.ToTextDpi(pageMargin.Left); 120fsrcMargin.du = durPage - TextDpi.ToTextDpi(pageMargin.Left + pageMargin.Right); 226ccol = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, pageSize.Width - (pageMargin.Left + pageMargin.Right), pageFontSize, pageFontFamily, enableColumns); 366PtsHelper.GetColumnsInfo(columnProperties, lineHeight, pageSize.Width - (pageMargin.Left + pageMargin.Right), pageFontSize, pageFontFamily, ncol, pfscolinfo, enableColumns);
MS\Internal\PtsHost\StructuralCache.cs (2)
770internal PTS.FSRECT PageMarginRect { get { return new PTS.FSRECT(new Rect(PageMargin.Left, PageMargin.Top, 771PageSize.Width - PageMargin.Left - PageMargin.Right,
MS\Internal\PtsHost\SubpageParaClient.cs (4)
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); 91mbp.Border = new Thickness(mbp.Border.Left, mbp.Border.Top, mbp.Border.Right, 0.0); 92mbp.Padding = new Thickness(mbp.Padding.Left, mbp.Padding.Top, mbp.Padding.Right, 0.0);
MS\Internal\PtsHost\TableParaClient.cs (4)
1989totalPadding = Table.InternalCellSpacing * Table.ColumnCount + mbpInfo.Margin.Left + mbpInfo.Border.Left + mbpInfo.Padding.Left + mbpInfo.Padding.Right + mbpInfo.Border.Right + mbpInfo.Margin.Right; 2411durTableWidth += mbpInfo.Margin.Left + TextDpi.FromTextDpi(mbpInfo.MBPRight);
MS\Internal\Text\TextDpi.cs (4)
164if (pageMargin.Left >= pageSize.Width) { pageMargin.Right = 0.0; } 165if (pageMargin.Left + pageMargin.Right >= pageSize.Width) 167pageMargin.Right = Math.Max(0.0, pageSize.Width - pageMargin.Left - _minSize); 168if (pageMargin.Left + pageMargin.Right >= pageSize.Width)
System\Windows\Controls\Border.cs (11)
220borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 267borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 415pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX); 419pen.Thickness = border.Left; 459if (DoubleUtil.GreaterThanZero(border.Left)) 572ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX), 588ptTL = new Point(border.Left, border.Top); 623return new Size(th.Left + th.Right, th.Top + th.Bottom); 637return new Rect(rt.Left + thick.Left, 639Math.Max(0.0, rt.Width - thick.Left - thick.Right), 937double left = 0.5 * borders.Left;
System\Windows\Controls\Control.cs (1)
385return (t.Left >= 0.0d
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
170delta += margin.Left;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
592Math.Max(ia.OriginWidth, pagePadding.Left),
System\Windows\Controls\Primitives\TabPanel.cs (2)
213desiredSizeWithoutMargin.Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right); 265double leftOffset = margin.Left;
System\Windows\Controls\ProgressBar.cs (3)
243if (DoubleUtil.GreaterThan( _glow.Margin.Left,startPos) && ( DoubleUtil.LessThan(_glow.Margin.Left, endPos-1))) 247startTime = TimeSpan.FromSeconds(-1*(_glow.Margin.Left-startPos)/200.0);
System\Windows\Controls\SinglePageViewer.cs (1)
704Math.Max(ia.OriginWidth, pagePadding.Left),
System\Windows\Controls\TextBlock.cs (6)
1275Size contentSize = new Size(Math.Max(0.0, constraint.Width - (padding.Left + padding.Right)), 1347desiredSize.Width += (padding.Left + padding.Right); 1978Size contentSize = new Size(Math.Max(0.0, _referenceSize.Width - (padding.Left + padding.Right)), 3116Size contentSize = new Size(Math.Max(0.0, computedSize.Width - (padding.Left + padding.Right)), 3132contentOffset.X += padding.Left; 3194double paddingWidth = Padding.Left + Padding.Right;
System\Windows\Controls\TextRangeAdaptor.cs (2)
243return padding.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(padding.Left) : 0; 332return margin.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(margin.Left) : 0;
System\Windows\Controls\ToolBar.cs (1)
558extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.DesiredSize.Width + margin.Left + margin.Right);
System\Windows\Controls\VirtualizingStackPanel.cs (18)
3011_pixelDistanceToViewport += (isHorizontal ? inset.Left : inset.Top); 5299viewport.X -= IsPixelBased ? inset.Left : isHeaderBeforeItems ? 1 : 0; 5368if (DoubleUtil.GreaterThanOrClose(viewport.Width, inset.Left)) 5373viewport.Width = Math.Max(0, viewport.Width - inset.Left); 5384cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Left - viewport.Width)); 5401cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Left); 6439inset.Left = headerDesiredSizes.PixelSize.Width + margin.Left; 6471childRect.Offset(-margin.Left, -margin.Top); 6500changed = !( DoubleUtil.AreClose(oldInset.Left, inset.Left) && 6511( (isHorizontal && !(AreInsetsClose(oldInset.Left, inset.Left) && 6614return DoubleUtil.GreaterThanOrClose(inset.Left - margin.Left, inset.Right - margin.Right); 7118Size frontPixelSize = isHorizontal ? new Size(Math.Max(inset.Left,0), childDesiredSize.Height) 7652childPixelSize = new Size(inset.Left + itemDesiredSizes.PixelSize.Width + inset.Right, 11080offset += (isHorizontal ? inset.Left : inset.Top); 12971writer.Write(thickness.Left);
System\Windows\Documents\Block.cs (4)
536if (Double.IsNaN(t.Left) || Double.IsNaN(t.Right) || Double.IsNaN(t.Top) || Double.IsNaN(t.Bottom)) 541if (!Double.IsNaN(t.Left) && (t.Left < 0 || t.Left > maxThickness))
System\Windows\Documents\FlowDocument.cs (1)
1008if (double.IsNaN(pageMargin.Left))
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\TextEditorTyping.cs (1)
804flowDirection == FlowDirection.LeftToRight && margin.Left > 0 ||
System\Windows\Documents\TextRange.cs (1)
1668((Thickness)value).Right, ((Thickness)value).Top, ((Thickness)value).Left, ((Thickness)value).Bottom);
System\Windows\Documents\TextRangeEdit.cs (9)
1079? currentThickness.Left 1080: GetNewDoubleValue(null, currentThickness.Left, newThickness.Right, propertyValueAction); 1082rightMargin = newThickness.Left < 0 1084: GetNewDoubleValue(null, currentThickness.Right, newThickness.Left, propertyValueAction); 1088leftMargin = newThickness.Left < 0 1089? currentThickness.Left 1090: GetNewDoubleValue(null, currentThickness.Left, newThickness.Left, propertyValueAction); 1238/*right:*/((Thickness)value).Left,
System\Windows\Documents\TextRangeEditTables.cs (1)
1289double borderRight = cell.ColumnIndex + cell.ColumnSpan < columnCount ? 0.0 : border.Left;
System\Windows\FrameworkElement.cs (4)
4322double marginWidth = margin.Left + margin.Right; 4572double marginWidth = margin.Left + margin.Right; 4779offset.X += finalRect.X + margin.Left; 4929double marginWidth = margin.Left + margin.Right;
System\Windows\Input\KeyboardNavigation.cs (2)
2389double x = -deflateThickness.Left; 2391double width = uiElement.RenderSize.Width + deflateThickness.Left + deflateThickness.Right;
System\Windows\Shell\WindowChromeWorker.cs (9)
341templateFixupMargin.Left -= SystemParameters.WindowResizeBorderThickness.Left; 376templateFixupMargin.Right -= SystemParameters.WindowResizeBorderThickness.Left; 429templateFixupTransform = new MatrixTransform(1, 0, 0, 1, -(nonClientThickness.Left + nonClientThickness.Right), 0); 598rcClientArea.Left += (int)windowResizeBorderThicknessDevice.Left; 1232deviceGlassThickness.Left -= windowResizeBorderThicknessDevice.Left; 1233deviceGlassThickness.Left = Math.Max(0, deviceGlassThickness.Left); 1250cxLeftWidth = (int)Math.Ceiling(deviceGlassThickness.Left), 1290if (mousePosition.X >= windowPosition.Left && mousePosition.X < windowPosition.Left + (int)_chromeInfo.ResizeBorderThickness.Left) 1333Point logicalTopLeft = new Point(resizeBorderThickness.Left,
System\Windows\Standard\DpiHelper.cs (1)
79Point topLeft = LogicalPixelsToDevice(new Point(logicalThickness.Left, logicalThickness.Top), dpiScaleX, dpiScaleY);
System\Windows\Standard\Utilities.cs (1)
293if (!IsDoubleFiniteAndNonNegative(thickness.Left))
System\Windows\Thickness.cs (10)
123return DoubleUtil.IsZero(Left) 134return DoubleUtil.AreClose(Left, Top) 135&& DoubleUtil.AreClose(Left, Right) 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)) 191return ( DoubleUtil.AreClose(Left, thickness.Left)
System\Windows\ThicknessConverter.cs (2)
147return new InstanceDescriptor(ci, new object[] { th.Left, th.Top, th.Right, th.Bottom }); 175sb.Append(LengthConverter.ToString(th.Left, cultureInfo));
System\Windows\Window.cs (2)
6576if (margin.Left + margin.Right >= logicalClientRc.Width 6585LogicalToDeviceUnits(new Point(margin.Left, margin.Top)),
PresentationFramework.Aero (13)
Microsoft\Windows\Themes\ListBoxChrome.cs (9)
213double borderX = border.Left + border.Right; 274double borderX = border.Left + border.Right; 289childArrangeRect.X = border.Left; 312double borderX = border.Left + border.Right; 320bool isSimpleBorder = border.Left == 1.0 && border.Right == 1.0 && 329Rect backgroundRect = new Rect(bounds.Left + border.Left, 344backgroundRect = new Rect(bounds.Left + border.Left + innerBorderThickness, 493borderFigure.StartPoint = new Point(bounds.Left + thickness.Left, bounds.Top + thickness.Top); 494borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
193childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
PresentationFramework.Aero2 (13)
Microsoft\Windows\Themes\ListBoxChrome.cs (9)
213double borderX = border.Left + border.Right; 274double borderX = border.Left + border.Right; 289childArrangeRect.X = border.Left; 312double borderX = border.Left + border.Right; 320bool isSimpleBorder = border.Left == 1.0 && border.Right == 1.0 && 329Rect backgroundRect = new Rect(bounds.Left + border.Left, 344backgroundRect = new Rect(bounds.Left + border.Left + innerBorderThickness, 493borderFigure.StartPoint = new Point(bounds.Left + thickness.Left, bounds.Top + thickness.Top); 494borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false));
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
193childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
PresentationFramework.AeroLite (4)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
193childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
PresentationFramework.Classic (28)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (24)
571return (thickness.Left >= 0 && !double.IsPositiveInfinity(thickness.Left) && 595return new Size(th.Left + th.Right, th.Top + th.Bottom); 601return new Rect(rt.Left + thick.Left, 603Math.Max(0.0, rt.Width - thick.Left - thick.Right), 713double borderWidth = border.Left + border.Right; 719childArrangeRect.X = border.Left; 744return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s); 843xLines = GetPixelSnappingGuidelines(width, singleThickness.Left, singleThickness.Right, (int)classicThickness); 957if (borderThickness.Left > 0.0) 959dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Top, borderThickness.Left, bounds.Height)); 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)) 1047if (bounds.Width < singleThickness.Left + singleThickness.Right) 1050dc.DrawRectangle(DarkBrush, null, new Rect(bounds.Left, bounds.Top, singleThickness.Left, bounds.Height)); 1053bounds.X += singleThickness.Left; 1054bounds.Width -= singleThickness.Left + singleThickness.Right; 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 (4)
193childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
PresentationFramework.Luna (12)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
231double totalPadding = padding.Left + padding.Right; 238bounds.X += padding.Left;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (6)
190double borderX = isRound ? 2.0 : thickness.Left + thickness.Right; 205bool isUnitThickness = thickness.Left == 1.0 && thickness.Right == 1.0 && 215innerBounds = new Rect(thickness.Left, 217Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 457return new Rect(rt.Left + thick.Left, 459Math.Max(0.0, rt.Width - thick.Left - thick.Right),
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
193childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
PresentationFramework.Royale (12)
Microsoft\Windows\Themes\ScrollChrome.cs (2)
213double totalPadding = padding.Left + padding.Right; 220bounds.X += padding.Left;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (6)
190double borderX = isRound ? 2.0 : thickness.Left + thickness.Right; 205bool isUnitThickness = thickness.Left == 1.0 && thickness.Right == 1.0 && 215innerBounds = new Rect(thickness.Left, 217Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 457return new Rect(rt.Left + thick.Left, 459Math.Max(0.0, rt.Width - thick.Left - thick.Right),
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (4)
193childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 205return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 233double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right); 236child.Arrange(new Rect(padding.Left, padding.Top, childWidth, childHeight));
System.Windows.Controls.Ribbon (11)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
394double tabHeaderPadding = ribbonTabHeader.DefaultPadding.Left + ribbonTabHeader.DefaultPadding.Right; 447double leftPadding = Math.Max(0, ribbonTabHeader.DefaultPadding.Left - (isContextualTab ? reducePaddingContextualTabHeader : reducePaddingRegularTabHeader)); 506elementSize = elementSize - tabHeader.DefaultPadding.Left - tabHeader.DefaultPadding.Right;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
259result = point.X - tabHeader.Margin.Left; // Reduce RibbonTab Margin
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
227minSize.Width = popupChild.MinWidth - (borderThickness.Left + borderThickness.Right);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
1350popupChildMargin = (FlowDirection == FlowDirection.LeftToRight) ? popupChild.Margin.Left : popupChild.Margin.Right ;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
440PartToggleButton.BorderThickness = new Thickness(BorderThickness.Left, 0.0, BorderThickness.Right, BorderThickness.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
299_highlightLeftBorder.BorderThickness = new Thickness(BorderThickness.Left, BorderThickness.Top, 0.0, BorderThickness.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (3)
143if (double.IsNaN(_initialPadding.Left)) 299Point leftBottom = new Point(margin.Left + borderThickness.Left, ActualHeight);
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
302return new Padding(ToBoundedInt(thickness.Left),