17 writes to Left
PresentationFramework (8)
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
227pageMargin.Left = lineHeight;
MS\Internal\PtsHost\MbpInfo.cs (1)
72thickness.Left = thickness.Right;
MS\Internal\Text\TextDpi.cs (1)
171pageMargin.Left = pageSize.Width - _minSize;
System\Windows\Controls\VirtualizingStackPanel.cs (1)
6432inset.Left = headerDesiredSizes.PixelSize.Width + margin.Left;
System\Windows\Documents\FlowDocument.cs (1)
1010pageMargin.Left = lineHeight;
System\Windows\Shell\WindowChromeWorker.cs (3)
317templateFixupMargin.Left -= SystemParameters.WindowResizeBorderThickness.Left; 982deviceGlassThickness.Left -= windowResizeBorderThicknessDevice.Left; 983deviceGlassThickness.Left = Math.Max(0, deviceGlassThickness.Left);
PresentationFramework.Aero (2)
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
277border.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)
277border.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)
126newPadding.Left += availableExtraWidth * 0.5;
249 references to Left
PresentationFramework (155)
MS\Internal\AnimatedTypeHelpers.cs (11)
38InterpolateDouble(from.Left, to.Left, progress), 56AddDouble(value1.Left, value2.Left), 69value1.Left - value2.Left, 87Math.Pow(GetSegmentLengthDouble(from.Left, to.Left), 2.0) 107ScaleDouble(value.Left, factor), 130if ( IsValidAnimationValueDouble(value.Left) 153GetZeroValueDouble(baseValue.Left),
MS\Internal\Documents\FlowDocumentFormatter.cs (1)
225if (double.IsNaN(pageMargin.Left))
MS\Internal\Ink\InkCanvasSelection.cs (2)
452InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Left wasn't auto 463InkCanvas.SetLeft(updatedElement, newPosition.X - thickness.Left); // Both Left and Right were aut. Modify Left by default.
MS\Internal\PtsHost\FigureHelper.cs (1)
233double pageWidth = pageSize.Width - (pageMargin.Left + pageMargin.Right);
MS\Internal\PtsHost\FigureParagraph.cs (1)
594maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right;
MS\Internal\PtsHost\FlowDocumentPage.cs (8)
128if(!DoubleUtil.AreClose(_lastFormatWidth, pageSize.Width) || !DoubleUtil.AreClose(_pageMargin.Left, pageMargin.Left) || 155pageSize.Width += pageMargin.Left + pageMargin.Right; 158SetContentBox(new Rect(pageMargin.Left, pageMargin.Top, _ptsPage.CalculatedSize.Width, _ptsPage.CalculatedSize.Height)); 187double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(_structuralCache, pageSize.Width - (pageMargin.Left + pageMargin.Right)); 196SetContentBox(new Rect(pageMargin.Left, pageMargin.Top, 197pageSize.Width - (pageMargin.Left + pageMargin.Right), 690size.Width += _pageMargin.Left + _pageMargin.Right;
MS\Internal\PtsHost\MbpInfo.cs (16)
71double temp = thickness.Left; 138Double.IsNaN(mbp.Margin.Left) ? defaultMargin.Left : mbp.Margin.Left, 163Double.IsNaN(mbp.Padding.Left) ? defaultPadding.Left : mbp.Padding.Left, 174get { return TextDpi.ToTextDpi(_margin.Left) + TextDpi.ToTextDpi(_border.Left) + TextDpi.ToTextDpi(_padding.Left); } 206get { return TextDpi.ToTextDpi(_border.Left) + TextDpi.ToTextDpi(_padding.Left); } 238get { return TextDpi.ToTextDpi(_border.Left); } 270get { return TextDpi.ToTextDpi(_margin.Left); } 337Double.IsNaN(_padding.Left) || 352Double.IsNaN(_margin.Left) ||
MS\Internal\PtsHost\ParagraphVisual.cs (3)
91Thickness = _borderThickness.Left 104if (DoubleUtil.GreaterThanZero(_borderThickness.Left)) 158new Point(_renderBounds.Left + _borderThickness.Left, _renderBounds.Top + _borderThickness.Top),
MS\Internal\PtsHost\Section.cs (4)
116fsrcMargin.u = TextDpi.ToTextDpi(pageMargin.Left); 118fsrcMargin.du = durPage - TextDpi.ToTextDpi(pageMargin.Left + pageMargin.Right); 224ccol = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, pageSize.Width - (pageMargin.Left + pageMargin.Right), pageFontSize, pageFontFamily, enableColumns); 364PtsHelper.GetColumnsInfo(columnProperties, lineHeight, pageSize.Width - (pageMargin.Left + pageMargin.Right), pageFontSize, pageFontFamily, ncol, pfscolinfo, enableColumns);
MS\Internal\PtsHost\StructuralCache.cs (2)
764internal PTS.FSRECT PageMarginRect { get { return new PTS.FSRECT(new Rect(PageMargin.Left, PageMargin.Top, 765PageSize.Width - PageMargin.Left - PageMargin.Right,
MS\Internal\PtsHost\SubpageParaClient.cs (4)
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); 86mbp.Border = new Thickness(mbp.Border.Left, mbp.Border.Top, mbp.Border.Right, 0.0); 87mbp.Padding = new Thickness(mbp.Padding.Left, mbp.Padding.Top, mbp.Padding.Right, 0.0);
MS\Internal\PtsHost\TableParaClient.cs (4)
1983totalPadding = Table.InternalCellSpacing * Table.ColumnCount + mbpInfo.Margin.Left + mbpInfo.Border.Left + mbpInfo.Padding.Left + mbpInfo.Padding.Right + mbpInfo.Border.Right + mbpInfo.Margin.Right; 2405durTableWidth += mbpInfo.Margin.Left + TextDpi.FromTextDpi(mbpInfo.MBPRight);
MS\Internal\Text\TextDpi.cs (4)
165if (pageMargin.Left >= pageSize.Width) { pageMargin.Right = 0.0; } 166if (pageMargin.Left + pageMargin.Right >= pageSize.Width) 168pageMargin.Right = Math.Max(0.0, pageSize.Width - pageMargin.Left - _minSize); 169if (pageMargin.Left + pageMargin.Right >= pageSize.Width)
System\Windows\Controls\Border.cs (11)
216borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 263borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 413pen.Thickness = UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX); 417pen.Thickness = border.Left; 457if (DoubleUtil.GreaterThanZero(border.Left)) 576ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX), 592ptTL = new Point(border.Left, border.Top); 627return new Size(th.Left + th.Right, th.Top + th.Bottom); 641return new Rect(rt.Left + thick.Left, 643Math.Max(0.0, rt.Width - thick.Left - thick.Right), 941double left = 0.5 * borders.Left;
System\Windows\Controls\Control.cs (1)
376return (t.Left >= 0.0d
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
167delta += margin.Left;
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
591Math.Max(ia.OriginWidth, pagePadding.Left),
System\Windows\Controls\Primitives\TabPanel.cs (2)
206Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right) 259double leftOffset = margin.Left;
System\Windows\Controls\ProgressBar.cs (3)
239if (DoubleUtil.GreaterThan( _glow.Margin.Left,startPos) && ( DoubleUtil.LessThan(_glow.Margin.Left, endPos-1))) 243startTime = TimeSpan.FromSeconds(-1*(_glow.Margin.Left-startPos)/200.0);
System\Windows\Controls\SinglePageViewer.cs (1)
703Math.Max(ia.OriginWidth, pagePadding.Left),
System\Windows\Controls\TextBlock.cs (6)
1263Size contentSize = new Size(Math.Max(0.0, constraint.Width - (padding.Left + padding.Right)), 1335desiredSize.Width += (padding.Left + padding.Right); 1966Size contentSize = new Size(Math.Max(0.0, _referenceSize.Width - (padding.Left + padding.Right)), 3106Size contentSize = new Size(Math.Max(0.0, computedSize.Width - (padding.Left + padding.Right)), 3122contentOffset.X += padding.Left; 3184double paddingWidth = Padding.Left + Padding.Right;
System\Windows\Controls\TextRangeAdaptor.cs (2)
241return padding.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(padding.Left) : 0; 330return margin.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(margin.Left) : 0;
System\Windows\Controls\ToolBar.cs (1)
549extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.DesiredSize.Width + margin.Left + margin.Right);
System\Windows\Controls\VirtualizingStackPanel.cs (18)
3004_pixelDistanceToViewport += (isHorizontal ? inset.Left : inset.Top); 5292viewport.X -= IsPixelBased ? inset.Left : isHeaderBeforeItems ? 1 : 0; 5361if (DoubleUtil.GreaterThanOrClose(viewport.Width, inset.Left)) 5366viewport.Width = Math.Max(0, viewport.Width - inset.Left); 5377cacheAfterSize = Math.Max(0, cacheAfterSize - (inset.Left - viewport.Width)); 5394cacheAfterSize = Math.Max(0, cacheAfterSize - inset.Left); 6432inset.Left = headerDesiredSizes.PixelSize.Width + margin.Left; 6464childRect.Offset(-margin.Left, -margin.Top); 6493changed = !( DoubleUtil.AreClose(oldInset.Left, inset.Left) && 6504( (isHorizontal && !(AreInsetsClose(oldInset.Left, inset.Left) && 6607return DoubleUtil.GreaterThanOrClose(inset.Left - margin.Left, inset.Right - margin.Right); 7113Size frontPixelSize = isHorizontal ? new Size(Math.Max(inset.Left,0), childDesiredSize.Height) 7647childPixelSize = new Size(inset.Left + itemDesiredSizes.PixelSize.Width + inset.Right, 11077offset += (isHorizontal ? inset.Left : inset.Top); 12960writer.Write(thickness.Left);
System\Windows\Documents\Block.cs (4)
534if (Double.IsNaN(t.Left) || Double.IsNaN(t.Right) || Double.IsNaN(t.Top) || Double.IsNaN(t.Bottom)) 539if (!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)
795flowDirection == FlowDirection.LeftToRight && margin.Left > 0 ||
System\Windows\Documents\TextRange.cs (1)
1658((Thickness)value).Right, ((Thickness)value).Top, ((Thickness)value).Left, ((Thickness)value).Bottom);
System\Windows\Documents\TextRangeEdit.cs (9)
1077? currentThickness.Left 1078: GetNewDoubleValue(null, currentThickness.Left, newThickness.Right, propertyValueAction); 1080rightMargin = newThickness.Left < 0 1082: GetNewDoubleValue(null, currentThickness.Right, newThickness.Left, propertyValueAction); 1086leftMargin = newThickness.Left < 0 1087? currentThickness.Left 1088: GetNewDoubleValue(null, currentThickness.Left, newThickness.Left, propertyValueAction); 1236/*right:*/((Thickness)value).Left,
System\Windows\Documents\TextRangeEditTables.cs (1)
1291double borderRight = cell.ColumnIndex + cell.ColumnSpan < columnCount ? 0.0 : border.Left;
System\Windows\FrameworkElement.cs (4)
4315double marginWidth = margin.Left + margin.Right; 4565double marginWidth = margin.Left + margin.Right; 4772offset.X += finalRect.X + margin.Left; 4924double marginWidth = margin.Left + margin.Right;
System\Windows\Input\KeyboardNavigation.cs (2)
2385double x = -deflateThickness.Left; 2387double width = uiElement.RenderSize.Width + deflateThickness.Left + deflateThickness.Right;
System\Windows\Shell\WindowChromeWorker.cs (7)
317templateFixupMargin.Left -= SystemParameters.WindowResizeBorderThickness.Left; 421rcClientArea.Left += (int)windowResizeBorderThicknessDevice.Left; 982deviceGlassThickness.Left -= windowResizeBorderThicknessDevice.Left; 983deviceGlassThickness.Left = Math.Max(0, deviceGlassThickness.Left); 1000cxLeftWidth = (int)Math.Ceiling(deviceGlassThickness.Left), 1040if (mousePosition.X >= windowPosition.Left && mousePosition.X < windowPosition.Left + (int)_chromeInfo.ResizeBorderThickness.Left) 1083Point logicalTopLeft = new Point(resizeBorderThickness.Left,
System\Windows\Standard\DpiHelper.cs (1)
75Point topLeft = LogicalPixelsToDevice(new Point(logicalThickness.Left, logicalThickness.Top), dpiScaleX, dpiScaleY);
System\Windows\Standard\Utilities.cs (1)
254if (!IsDoubleFiniteAndNonNegative(thickness.Left))
System\Windows\Thickness.cs (10)
122return DoubleUtil.IsZero(Left) 133return DoubleUtil.AreClose(Left, Top) 134&& DoubleUtil.AreClose(Left, Right) 135&& DoubleUtil.AreClose(Left, Bottom); 152if(Left < 0d || Right < 0d || Top < 0d || Bottom < 0d) 158if(double.IsNaN(Left) || double.IsNaN(Right) || double.IsNaN(Top) || double.IsNaN(Bottom)) 164if(Double.IsPositiveInfinity(Left) || Double.IsPositiveInfinity(Right) || Double.IsPositiveInfinity(Top) || Double.IsPositiveInfinity(Bottom)) 172if(Double.IsNegativeInfinity(Left) || Double.IsNegativeInfinity(Right) || Double.IsNegativeInfinity(Top) || Double.IsNegativeInfinity(Bottom)) 190return ( DoubleUtil.AreClose(Left, thickness.Left)
System\Windows\ThicknessConverter.cs (2)
132return new InstanceDescriptor(ci, new object[] { thickness.Left, thickness.Top, thickness.Right, thickness.Bottom }); 166LengthConverter.FormatLengthAsString(th.Left, ref handler);
System\Windows\Window.cs (2)
6679if (margin.Left + margin.Right >= logicalClientRc.Width 6688LogicalToDeviceUnits(new Point(margin.Left, margin.Top)),
PresentationFramework.Aero (13)
Microsoft\Windows\Themes\ListBoxChrome.cs (9)
209double borderX = border.Left + border.Right; 270double borderX = border.Left + border.Right; 285childArrangeRect.X = border.Left; 308double borderX = border.Left + border.Right; 316bool isSimpleBorder = border.Left == 1.0 && border.Right == 1.0 && 325Rect backgroundRect = new Rect(bounds.Left + border.Left, 340backgroundRect = new Rect(bounds.Left + border.Left + innerBorderThickness, 490StartPoint = new Point(bounds.Left + thickness.Left, bounds.Top + thickness.Top) 492borderFigure.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)
209double borderX = border.Left + border.Right; 270double borderX = border.Left + border.Right; 285childArrangeRect.X = border.Left; 308double borderX = border.Left + border.Right; 316bool isSimpleBorder = border.Left == 1.0 && border.Right == 1.0 && 325Rect backgroundRect = new Rect(bounds.Left + border.Left, 340backgroundRect = new Rect(bounds.Left + border.Left + innerBorderThickness, 490StartPoint = new Point(bounds.Left + thickness.Left, bounds.Top + thickness.Top) 492borderFigure.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)
570return (thickness.Left >= 0 && !double.IsPositiveInfinity(thickness.Left) && 594return new Size(th.Left + th.Right, th.Top + th.Bottom); 600return new Rect(rt.Left + thick.Left, 602Math.Max(0.0, rt.Width - thick.Left - thick.Right), 712double borderWidth = border.Left + border.Right; 718childArrangeRect.X = border.Left; 743return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s); 842xLines = GetPixelSnappingGuidelines(width, singleThickness.Left, singleThickness.Right, (int)classicThickness); 958if (borderThickness.Left > 0.0) 960dc.DrawRectangle(borderBrush, null, new Rect(bounds.Left, bounds.Top, borderThickness.Left, bounds.Height)); 987DrawBorder(highlight, new Thickness(singleThickness.Left, singleThickness.Top, 0, 0), dc, ref bounds); 995if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1005if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1014if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1024if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1048if (bounds.Width < singleThickness.Left + singleThickness.Right) 1051dc.DrawRectangle(DarkBrush, null, new Rect(bounds.Left, bounds.Top, singleThickness.Left, bounds.Height)); 1054bounds.X += singleThickness.Left; 1055bounds.Width -= singleThickness.Left + singleThickness.Right; 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))
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)
227double totalPadding = padding.Left + padding.Right; 234bounds.X += padding.Left;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (6)
186double borderX = isRound ? 2.0 : thickness.Left + thickness.Right; 201bool isUnitThickness = thickness.Left == 1.0 && thickness.Right == 1.0 && 211innerBounds = new Rect(thickness.Left, 213Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 453return new Rect(rt.Left + thick.Left, 455Math.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)
209double totalPadding = padding.Left + padding.Right; 216bounds.X += padding.Left;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (6)
186double borderX = isRound ? 2.0 : thickness.Left + thickness.Right; 201bool isUnitThickness = thickness.Left == 1.0 && thickness.Right == 1.0 && 211innerBounds = new Rect(thickness.Left, 213Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 453return new Rect(rt.Left + thick.Left, 455Math.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)
391double tabHeaderPadding = ribbonTabHeader.DefaultPadding.Left + ribbonTabHeader.DefaultPadding.Right; 444double leftPadding = Math.Max(0, ribbonTabHeader.DefaultPadding.Left - (isContextualTab ? reducePaddingContextualTabHeader : reducePaddingRegularTabHeader)); 503elementSize = elementSize - tabHeader.DefaultPadding.Left - tabHeader.DefaultPadding.Right;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
255result = point.X - tabHeader.Margin.Left; // Reduce RibbonTab Margin
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (1)
222minSize.Width = popupChild.MinWidth - (borderThickness.Left + borderThickness.Right);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
1347popupChildMargin = (FlowDirection == FlowDirection.LeftToRight) ? popupChild.Margin.Left : popupChild.Margin.Right ;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
438PartToggleButton.BorderThickness = new Thickness(BorderThickness.Left, 0.0, BorderThickness.Right, BorderThickness.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
298_highlightLeftBorder.BorderThickness = new Thickness(BorderThickness.Left, BorderThickness.Top, 0.0, BorderThickness.Bottom);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (3)
141if (double.IsNaN(_initialPadding.Left)) 297Point leftBottom = new Point(margin.Left + borderThickness.Left, ActualHeight);
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
300return new Padding(ToBoundedInt(thickness.Left),