137 instantiations of Thickness
PresentationFramework (98)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (5)
37return new Thickness( 55return new Thickness( 68return new Thickness( 106return new Thickness( 152return new Thickness(
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (2)
458private readonly Thickness _pageBorderVisibleThickness = new Thickness(1, 1, 1, 1); 459private readonly Thickness _pageBorderInvisibleThickness = new Thickness(0, 0, 0, 0);
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
41MarginProperty.OverrideMetadata(typeof(TextBoxView), new FrameworkPropertyMetadata(new Thickness(CaretElement.BidiCaretIndicatorWidth, 0, CaretElement.BidiCaretIndicatorWidth, 0)));
src\Framework\MS\Internal\Helper.cs (2)
1125Thickness correctionFactor = new Thickness(0); 1200Thickness itemsCorrectionFactor = new Thickness();
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
400Thickness thickness = new Thickness();
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (1)
536new Thickness(),
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (2)
738new Thickness(), 788new Thickness(),
src\Framework\MS\Internal\PtsHost\ListMarkerSourceInfo.cs (1)
50return new Thickness(leftPadding, 0, 0, 0);
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (12)
92_margin = new Thickness(); 93_border = new Thickness(); 94_padding = new Thickness(); 121defaultMargin = new Thickness(0); 125defaultMargin = new Thickness(0, lineHeight, 0, lineHeight); 130defaultMargin = new Thickness(0, lineHeight, 0, lineHeight); 134defaultMargin = new Thickness(0.5 * lineHeight); 138defaultMargin = new Thickness(0); 140mbp.Margin = new Thickness( 155defaultPadding = new Thickness(0.5 * lineHeight); 163defaultPadding = new Thickness(0); 165mbp.Padding = new Thickness(
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (4)
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); 110mbp.Border = new Thickness(mbp.Border.Left, mbp.Border.Top, mbp.Border.Right, 0.0); 111mbp.Padding = new Thickness(mbp.Padding.Left, mbp.Padding.Top, mbp.Padding.Right, 0.0);
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (3)
236new Thickness(), 423new Thickness(), 590new Thickness(),
src\Framework\System\Windows\Controls\Border.cs (4)
131new Thickness(), 157new Thickness(), 227borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY), 274borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
src\Framework\System\Windows\Controls\Control.cs (1)
380new Thickness(),
src\Framework\System\Windows\Controls\DataGrid.cs (2)
4074new FrameworkPropertyMetadata(new Thickness(0))); 4110NewItemMargin = new Thickness(marginLeft, 0, 0, 0);
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (3)
43style.Setters.Add(new Setter(TextBlock.MarginProperty, new Thickness(2.0, 0.0, 2.0, 0.0))); 65style.Setters.Add(new Setter(TextBox.BorderThicknessProperty, new Thickness(0.0))); 66style.Setters.Add(new Setter(TextBox.PaddingProperty, new Thickness(0.0)));
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
592Document.PagePadding = new Thickness(
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1127paddingHeader.Padding = new Thickness(0.0); 1159indicator.Margin = new Thickness(0);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
707private static readonly Thickness _defalutCellMargin = new Thickness(6, 0, 6, 0);
src\Framework\System\Windows\Controls\ProgressBar.cs (2)
261animation.KeyFrames.Add(new LinearThicknessKeyFrame(new Thickness(startPos,0,0,0), TimeSpan.FromSeconds(0))); 263animation.KeyFrames.Add(new LinearThicknessKeyFrame(new Thickness(endPos,0,0,0), translateTime));
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
334renderScope.Document.PagePadding = new Thickness(CaretElement.CaretPaddingWidth, 0, CaretElement.CaretPaddingWidth, 0);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
710document.PagePadding = new Thickness(
src\Framework\System\Windows\Controls\TextBlock.cs (1)
1085new Thickness(),
src\Framework\System\Windows\Controls\Validation.cs (1)
606border.SetValue(Border.BorderThicknessProperty, new Thickness(1));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
6282Thickness inset = new Thickness(); 6331Thickness margin = (fe == null) ? new Thickness() : fe.Margin; 6344Thickness inset = new Thickness(left, top, right, bottom); 6474Thickness margin = (container == null) ? new Thickness() : container.Margin;
src\Framework\System\Windows\Documents\AnchoredBlock.cs (3)
104new Thickness(Double.NaN), 123new Thickness(Double.NaN), 142new Thickness(),
src\Framework\System\Windows\Documents\Block.cs (3)
136new Thickness(), 158new Thickness(), 180new Thickness(),
src\Framework\System\Windows\Documents\FixedSOMTableCell.cs (1)
79element.SetValue(Block.BorderThicknessProperty, new Thickness(1));
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
704new Thickness(Double.NaN),
src\Framework\System\Windows\Documents\ListItem.cs (3)
148new Thickness(), 167new Thickness(), 186new Thickness(),
src\Framework\System\Windows\Documents\Paragraph.cs (1)
238margin = new Thickness(0, lineHeight, 0, lineHeight);
src\Framework\System\Windows\Documents\Table.cs (1)
55MarginProperty.OverrideMetadata(typeof(Table), new FrameworkPropertyMetadata(new Thickness(Double.NaN)));
src\Framework\System\Windows\Documents\TableCell.cs (2)
198new Thickness(), 217new Thickness(),
src\Framework\System\Windows\Documents\TextRange.cs (1)
1664value = new Thickness(
src\Framework\System\Windows\Documents\TextRangeEdit.cs (3)
1099return new Thickness(leftMargin, topMargin, rightMargin, bottomMargin); 1237object newValue = new Thickness( 1381Thickness thickness = new Thickness(increment, -1, -1, -1);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
690return new Thickness(
src\Framework\System\Windows\FrameworkElement.cs (1)
3733new Thickness(),
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
192new FrameworkPropertyMetadata(new Thickness()));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10106bamlType.DefaultConstructor = delegate() { return new System.Windows.Thickness(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1600case KnownElements.Thickness: o = new System.Windows.Thickness(); break;
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (4)
235Thickness from = new Thickness(); 236Thickness to = new Thickness(); 237Thickness accumulated = new Thickness(); 238Thickness foundation = new Thickness();
src\Framework\System\Windows\Shell\TaskbarItemInfo.cs (1)
179return new Thickness();
src\Framework\System\Windows\Shell\WindowChrome.cs (1)
50public static Thickness GlassFrameCompleteThickness { get { return new Thickness(-1); } }
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
498Thickness nonClientThickness = new Thickness( 1536rootElement.Margin = new Thickness();
src\Framework\System\Windows\Standard\DpiHelper.cs (1)
80return new Thickness(topLeft.X, topLeft.Y, bottomRight.X, bottomRight.Y);
src\Framework\System\Windows\SystemParameters.cs (2)
6326_windowResizeBorderThickness = new Thickness(frameSizeInDips.Width, frameSizeInDips.Height, frameSizeInDips.Width, frameSizeInDips.Height); 6356_windowNonClientFrameThickness = new Thickness(frameSizeInDips.Width, frameSizeInDips.Height + captionHeightInDips, frameSizeInDips.Width, frameSizeInDips.Height);
src\Framework\System\Windows\ThicknessConverter.cs (5)
110else if (source is double) { return new Thickness((double)source); } 111else { return new Thickness(Convert.ToDouble(source, cultureInfo)); } 223return new Thickness(lengths[0]); 226return new Thickness(lengths[0], lengths[1], lengths[0], lengths[1]); 229return new Thickness(lengths[0], lengths[1], lengths[2], lengths[3]);
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
32return new Thickness(5.0, 4.0, 5.0, 4.0);
Microsoft\Windows\Themes\ListBoxChrome.cs (1)
99new Thickness(1),
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
184if (padding.Equals(new Thickness())) 229if (padding.Equals(new Thickness())) 256Thickness padding = new Thickness(3.0); // The default padding
PresentationFramework.Classic (13)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
568new Thickness(0.0), 749return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s); 990DrawBorder(shadow, new Thickness(0, 0, singleThickness.Right, singleThickness.Bottom), dc, ref bounds); 991DrawBorder(highlight, new Thickness(singleThickness.Left, singleThickness.Top, 0, 0), dc, ref bounds); 1172_tabCache.Highlight2 = GenerateTabTopHighlightGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1185_tabCache.Shadow2 = GenerateTabTopShadowGeometry(HelperDeflateRect(bounds, new Thickness(1, 1, 1, 0)), false); 1236bounds = HelperDeflateRect(bounds, new Thickness(2, 2, 0, 2)); 1250bounds = HelperDeflateRect(bounds, new Thickness(2, 2, 2, 0)); 1272bounds = HelperDeflateRect(bounds, new Thickness(0, 2, 2, 2)); 1293bounds = HelperDeflateRect(bounds, new Thickness(2, 0, 2, 2));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
184if (padding.Equals(new Thickness())) 229if (padding.Equals(new Thickness())) 256Thickness padding = new Thickness(3.0); // The default padding
PresentationFramework.Luna (3)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
184if (padding.Equals(new Thickness())) 229if (padding.Equals(new Thickness())) 256Thickness padding = new Thickness(3.0); // The default padding
PresentationFramework.Royale (3)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
184if (padding.Equals(new Thickness())) 229if (padding.Equals(new Thickness())) 256Thickness padding = new Thickness(3.0); // The default padding
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (3)
36BorderThickness = new Thickness(1), 38Margin = new Thickness(10), 41Margin = new Thickness(4, 0, 4, 0),
System.Activities.Presentation (12)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (2)
57public static readonly DependencyProperty DropButtonInsetProperty = DependencyProperty.Register("DropButtonInset", typeof(Thickness), typeof(ChoiceEditor), new FrameworkPropertyMetadata(new Thickness(), FrameworkPropertyMetadataOptions.AffectsRender)); 58public static readonly DependencyProperty TextAreaInsetProperty = DependencyProperty.Register("TextAreaInset", typeof(Thickness), typeof(ChoiceEditor), new FrameworkPropertyMetadata(new Thickness(), FrameworkPropertyMetadataOptions.AffectsRender));
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
858Margin = new Thickness(locations[viewElement].X, locations[viewElement].Y, 0, 0),
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorLabelMarginConverter.cs (1)
22Thickness margin = new Thickness(0);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowMarginConverter.cs (1)
22Thickness margin = new Thickness(0);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
126Thickness margin = new Thickness(0);
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (3)
26BorderThickness = new Thickness(1), 28Margin = new Thickness(10), 32Margin = new Thickness(4, 0, 4, 0),
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (2)
322this.BorderThickness = new Thickness(1); 494this.BorderThickness = new Thickness(0);
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
93errorGrid.Margin = new Thickness(20.0);
454 references to Thickness
PresentationFramework (358)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (16)
35internal static Thickness InterpolateThickness(Thickness from, Thickness to, double progress) 53internal static Thickness AddThickness(Thickness value1, Thickness value2) 66internal static Thickness SubtractThickness(Thickness value1, Thickness value2) 84internal static double GetSegmentLengthThickness(Thickness from, Thickness to) 104internal static Thickness ScaleThickness(Thickness value, double factor) 127internal static bool IsValidAnimationValueThickness(Thickness value) 150internal static Thickness GetZeroValueThickness(Thickness baseValue)
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (2)
458private readonly Thickness _pageBorderVisibleThickness = new Thickness(1, 1, 1, 1); 459private readonly Thickness _pageBorderInvisibleThickness = new Thickness(0, 0, 0, 0);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
511internal Thickness PagePadding;
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (3)
62Thickness pageMargin; 227private Thickness ComputePageMargin() 230Thickness pageMargin = _document.PagePadding;
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
752Thickness pageMargin;
src\Framework\MS\Internal\Helper.cs (4)
1096Thickness itemsCorrectionFactor = GroupItem.DesiredPixelItemsSizeCorrectionFactorField.GetValue(virtualizingElement); 1125Thickness correctionFactor = new Thickness(0); 1200Thickness itemsCorrectionFactor = new Thickness(); 1225Thickness oldItemsCorrectionFactor = GroupItem.DesiredPixelItemsSizeCorrectionFactorField.GetValue(virtualizingElement);
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
400Thickness thickness = new Thickness();
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (3)
148Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin; 192Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin; 245Thickness pageMargin = structuralCache.CurrentFormatContext.PageMargin;
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (2)
624Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin; 662Thickness pageMargin = StructuralCache.CurrentFormatContext.PageMargin;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (4)
126internal void FormatBottomless(Size pageSize, Thickness pageMargin) 186internal PageBreakRecord FormatFinite(Size pageSize, Thickness pageMargin, PageBreakRecord breakRecord) 704internal Thickness Margin { get { return _pageMargin; } } 1135private Thickness _pageMargin;
src\Framework\MS\Internal\PtsHost\ListMarkerSourceInfo.cs (1)
45internal static Thickness CalculatePadding(List list, double lineHeight, double pixelsPerDip)
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (12)
72private static void ReverseFlowDirection(ref Thickness thickness) 104_margin = (Thickness)block.GetValue(Block.MarginProperty); 105_border = (Thickness)block.GetValue(Block.BorderThicknessProperty); 106_padding = (Thickness)block.GetValue(Block.PaddingProperty); 115Thickness defaultMargin; 152Thickness defaultPadding; 303internal Thickness Margin 312internal Thickness Border 318internal Thickness Padding 365private Thickness _margin; 370private Thickness _border; 375private Thickness _padding;
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (4)
42internal void DrawBackgroundAndBorder(Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk) 45_borderBrush != borderBrush || !Thickness.AreClose(_borderThickness, borderThickness)) 66internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk) 163private Thickness _borderThickness; // Border thickness
src\Framework\MS\Internal\PtsHost\Section.cs (3)
120Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin; 227Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin; 375Thickness pageMargin = _structuralCache.CurrentFormatContext.PageMargin;
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (4)
669internal Thickness DocumentPageMargin { get { return _owner._currentPage.Margin; } } 718internal void PushNewPageData(Size pageSize, Thickness pageMargin, bool incrementalUpdate, bool finitePage) 754internal Thickness PageMargin { get { return _currentFormatInfo.PageMargin; } } 786internal Thickness PageMargin;
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (1)
425Thickness pageMargin = StructuralCache.CurrentFormatContext.DocumentPageMargin;
src\Framework\MS\Internal\Text\TextDpi.cs (1)
165internal static void EnsureValidPageMargin(ref Thickness pageMargin, Size pageSize)
src\Framework\System\Windows\Controls\Border.cs (15)
75/// <see cref="System.Windows.Thickness" /> containing values for each of the Left, Top, Right, 78public Thickness BorderThickness 80get { return (Thickness) GetValue(BorderThicknessProperty); } 88public Thickness Padding 90get { return (Thickness) GetValue(PaddingProperty); } 129= DependencyProperty.Register("BorderThickness", typeof(Thickness), typeof(Border), 147Thickness t = (Thickness)value; 155= DependencyProperty.Register("Padding", typeof(Thickness), typeof(Border), 223Thickness borders = this.BorderThickness; 270Thickness borders = BorderThickness; 398Thickness border = BorderThickness; 630private static Size HelperCollapseThickness(Thickness th) 644private static Rect HelperDeflateRect(Rect rt, Thickness thick) 944internal Radii(CornerRadius radii, Thickness borders, bool outer)
src\Framework\System\Windows\Controls\Control.cs (7)
109public Thickness BorderThickness 111get { return (Thickness) GetValue(BorderThicknessProperty); } 378typeof(Thickness), typeof(Control), 385Thickness t = (Thickness)value; 396public Thickness Padding 398get { return (Thickness) GetValue(PaddingProperty); }
src\Framework\System\Windows\Controls\DataGrid.cs (3)
4061public Thickness NewItemMargin 4063get { return (Thickness)GetValue(NewItemMarginProperty); } 4072typeof(Thickness),
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (2)
170Thickness margin = _visualBrushCanvas.Margin; 183Thickness margin = _visualBrushCanvas.Margin;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
540Thickness pagePadding;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
707private static readonly Thickness _defalutCellMargin = new Thickness(6, 0, 6, 0);
src\Framework\System\Windows\Controls\GroupItem.cs (2)
480internal static readonly UncommonField<Thickness> DesiredPixelItemsSizeCorrectionFactorField = new UncommonField<Thickness>();
src\Framework\System\Windows\Controls\PasswordBox.cs (2)
1136if (padding is Thickness) 1138passwordBox.ScrollViewer.Padding = (Thickness)padding;
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (4)
211Thickness margin = (Thickness)element.GetValue(MarginProperty); 265Thickness margin = (Thickness)child.GetValue(MarginProperty);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
661Thickness pagePadding;
src\Framework\System\Windows\Controls\TextBlock.cs (5)
1091public Thickness Padding 1093get { return (Thickness)GetValue(PaddingProperty); } 1352Thickness padding = this.Padding; 2066Thickness padding = this.Padding; 3205Thickness padding = this.Padding;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (12)
250Thickness padding = (Thickness)tp.GetValue(Block.PaddingProperty); 261Thickness padding = (Thickness)tp.GetValue(Block.PaddingProperty); 328Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 339Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 350Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty); 361Thickness margin = (Thickness)tp.GetValue(FrameworkElement.MarginProperty);
src\Framework\System\Windows\Controls\ToolBar.cs (1)
565Thickness margin = toolBarPanel.Margin;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (24)
95internal static readonly DependencyProperty ItemsHostInsetProperty = DependencyProperty.Register("ItemsHostInset", typeof(Thickness), typeof(VirtualizingStackPanel)); 1312Thickness inset = GetItemsHostInsetForChild(virtualizingElement); 2958Thickness inset = GetItemsHostInsetForChild(firstContainer); 5174Thickness inset = GetItemsHostInsetForChild(virtualizationInfoProvider, parentItemStorageProvider, parentItem); 6255private Thickness GetItemsHostInsetForChild(IHierarchicalVirtualizationAndScrollInfo virtualizationInfoProvider, IContainItemStorage parentItemStorageProvider=null, object parentItem=null) 6278return (Thickness)container.GetValue(ItemsHostInsetProperty); 6282Thickness inset = new Thickness(); 6286inset = (Thickness)box; 6291inset = (Thickness)box; 6299Thickness margin = container.Margin; 6331Thickness margin = (fe == null) ? new Thickness() : fe.Margin; 6344Thickness inset = new Thickness(left, top, right, bottom); 6361Thickness oldInset = (Thickness)box; 6468private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset) 6474Thickness margin = (container == null) ? new Thickness() : container.Margin; 6974Thickness inset = GetItemsHostInsetForChild(virtualizingChild); 7511Thickness inset = (Thickness)v; 10932Thickness inset = GetItemsHostInsetForChild(virtualizingElement); 10945Thickness inset = GetItemsHostInsetForChild(virtualizingElement); 12802private static void WriteThickness(BinaryWriter writer, ref Thickness thickness) 12816internal Thickness _inset; 12873info._inset = (Thickness)child.GetValue(ItemsHostInsetProperty);
src\Framework\System\Windows\Documents\AnchoredBlock.cs (6)
110public Thickness Margin 112get { return (Thickness)GetValue(MarginProperty); } 129public Thickness Padding 131get { return (Thickness)GetValue(PaddingProperty); } 148public Thickness BorderThickness 150get { return (Thickness)GetValue(BorderThicknessProperty); }
src\Framework\System\Windows\Documents\Block.cs (16)
133typeof(Thickness), 143public Thickness Margin 145get { return (Thickness)GetValue(MarginProperty); } 155typeof(Thickness), 165public Thickness Padding 167get { return (Thickness)GetValue(PaddingProperty); } 177typeof(Thickness), 187public Thickness BorderThickness 189get { return (Thickness)GetValue(BorderThicknessProperty); } 460Thickness t = (Thickness)o; 466Thickness t = (Thickness)o; 472Thickness t = (Thickness)o; 555internal static bool IsValidThickness(Thickness t, bool allowNaN)
src\Framework\System\Windows\Documents\FlowDocument.cs (7)
701typeof(Thickness), 718public Thickness PagePadding 720get { return (Thickness) GetValue(PagePaddingProperty); } 1010internal Thickness ComputePageMargin() 1013Thickness pageMargin = this.PagePadding; 1582Thickness value = (Thickness)o;
src\Framework\System\Windows\Documents\ListItem.cs (6)
154public Thickness Margin 156get { return (Thickness)GetValue(MarginProperty); } 173public Thickness Padding 175get { return (Thickness)GetValue(PaddingProperty); } 192public Thickness BorderThickness 194get { return (Thickness)GetValue(BorderThicknessProperty); }
src\Framework\System\Windows\Documents\Paragraph.cs (2)
231internal void GetDefaultMarginValue(ref Thickness margin) 241internal static bool IsMarginAuto(Thickness margin)
src\Framework\System\Windows\Documents\TableCell.cs (4)
204public Thickness Padding 206get { return (Thickness)GetValue(PaddingProperty); } 223public Thickness BorderThickness 225get { return (Thickness)GetValue(BorderThicknessProperty); }
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
818Thickness margin = paragraphOrBlockUIContainer.Margin;
src\Framework\System\Windows\Documents\TextRange.cs (7)
801!(formattingProperty.PropertyType == typeof(Thickness) && (value is Thickness))) 1661if (formattingProperty.PropertyType == typeof(Thickness) && 1665((Thickness)value).Right, ((Thickness)value).Top, ((Thickness)value).Left, ((Thickness)value).Bottom);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (15)
863if (property.PropertyType == typeof(Thickness)) 866Invariant.Assert(currentValue is Thickness, "Expecting the currentValue to be of Thinkness type"); 867Invariant.Assert(newValue is Thickness, "Expecting the newValue to be of Thinkness type"); 869newValue = ComputeNewThicknessValue((Thickness)currentValue, (Thickness)newValue, parentFlowDirection, flowDirection, propertyValueAction); 1060private static Thickness ComputeNewThicknessValue(Thickness currentThickness, Thickness newThickness, 1228if (value is Thickness) 1230if (Paragraph.IsMarginAuto((Thickness)value)) 1238/*left*/((Thickness)value).Right, 1239/*top:*/((Thickness)value).Top, 1240/*right:*/((Thickness)value).Left, 1241/*bottom:*/((Thickness)value).Bottom); 1381Thickness thickness = new Thickness(increment, -1, -1, -1);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
688private static Thickness GetCellBorder(double thickness, int rowIndex, int columnIndex, int rowSpan, int columnSpan, int rowCount, int columnCount) 1290Thickness border = cell.BorderThickness;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (2)
903Thickness thickness = (Thickness)propertyValue;
src\Framework\System\Windows\Documents\TextSchema.cs (1)
767typeof(Thickness).IsAssignableFrom(propertyType);
src\Framework\System\Windows\FrameworkElement.cs (8)
3731= DependencyProperty.Register("Margin", typeof(Thickness), _typeofThis, 3739Thickness m = (Thickness)value; 3747public Thickness Margin 3749get { return (Thickness) GetValue(MarginProperty); } 4327Thickness margin = Margin; 4574Thickness margin = Margin; 4930Thickness margin = Margin;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (3)
190typeof(Thickness), 2475Thickness deflateThickness = (Thickness)uiElement.GetValue(DirectionalNavigationMarginProperty);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
743case 651: t = () => typeof(Thickness); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10104typeof(System.Windows.Thickness),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6195case KnownElements.Thickness: t = typeof(System.Windows.Thickness); break;
src\Framework\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
52public DiscreteThicknessKeyFrame(Thickness value) 60public DiscreteThicknessKeyFrame(Thickness value, KeyTime keyTime) 88protected override Thickness InterpolateValueCore(Thickness baseValue, double keyFrameProgress)
src\Framework\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
51public EasingThicknessKeyFrame(Thickness value) 60public EasingThicknessKeyFrame(Thickness value, KeyTime keyTime) 70public EasingThicknessKeyFrame(Thickness value, KeyTime keyTime, IEasingFunction easingFunction) 99protected override Thickness InterpolateValueCore(Thickness baseValue, double keyFrameProgress)
src\Framework\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
48protected ThicknessKeyFrame(Thickness value) 57protected ThicknessKeyFrame(Thickness value, KeyTime keyTime) 100typeof(Thickness), 115Value = (Thickness)value; 122public Thickness Value 126return (Thickness)GetValue(ValueProperty); 143public Thickness InterpolateValue( 144Thickness baseValue, 164protected abstract Thickness InterpolateValueCore( 165Thickness baseValue,
src\Framework\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
51public LinearThicknessKeyFrame(Thickness value) 59public LinearThicknessKeyFrame(Thickness value, KeyTime keyTime) 85protected override Thickness InterpolateValueCore(Thickness baseValue, double keyFrameProgress)
src\Framework\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
51public SplineThicknessKeyFrame(Thickness value) 60public SplineThicknessKeyFrame(Thickness value, KeyTime keyTime) 70public SplineThicknessKeyFrame(Thickness value, KeyTime keyTime, KeySpline keySpline) 104protected override Thickness InterpolateValueCore(Thickness baseValue, double keyFrameProgress)
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (32)
45private Thickness[] _keyValues; 60Type typeofProp = typeof(Thickness?); 69new PropertyMetadata((Thickness?)null, propCallback), 76new PropertyMetadata((Thickness?)null, propCallback), 83new PropertyMetadata((Thickness?)null, propCallback), 107public ThicknessAnimation(Thickness toValue, Duration duration) 119public ThicknessAnimation(Thickness toValue, Duration duration, FillBehavior fillBehavior) 132public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration) 145public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior) 218protected override Thickness GetCurrentValueCore(Thickness defaultOriginValue, Thickness defaultDestinationValue, AnimationClock animationClock) 235Thickness from = new Thickness(); 236Thickness to = new Thickness(); 237Thickness accumulated = new Thickness(); 238Thickness foundation = new Thickness(); 352Thickness accumulator = AnimatedTypeHelpers.SubtractThickness(to, from); 377_keyValues = new Thickness[2]; 384_keyValues = new Thickness[2]; 391_keyValues = new Thickness[1]; 398_keyValues = new Thickness[1]; 404_keyValues = new Thickness[1]; 425Thickness? typedValue = (Thickness?)value; 445public Thickness? From 449return (Thickness?)GetValue(FromProperty); 465public Thickness? To 469return (Thickness?)GetValue(ToProperty); 485public Thickness? By 489return (Thickness?)GetValue(ByProperty);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationBase.cs (9)
103return GetCurrentValue((Thickness)defaultOriginValue, (Thickness)defaultDestinationValue, animationClock); 115return typeof(Thickness); 152public Thickness GetCurrentValue(Thickness defaultOriginValue, Thickness defaultDestinationValue, AnimationClock animationClock) 215protected abstract Thickness GetCurrentValueCore(Thickness defaultOriginValue, Thickness defaultDestinationValue, AnimationClock animationClock);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (8)
331protected sealed override Thickness GetCurrentValueCore( 332Thickness defaultOriginValue, 333Thickness defaultDestinationValue, 359Thickness currentIterationValue; 395Thickness fromValue; 643private Thickness GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 954Thickness prevKeyValue = _keyFrames[index - 1].Value; 958Thickness currentKeyValue = _keyFrames[index].Value;
src\Framework\System\Windows\Shell\TaskbarItemInfo.cs (7)
157typeof(Thickness), 160default(Thickness), 162(d, baseValue) => ((TaskbarItemInfo)d).CoerceThumbnailClipMargin((Thickness)baseValue))); 168public Thickness ThumbnailClipMargin 170get { return (Thickness)GetValue(ThumbnailClipMarginProperty); } 174private Thickness CoerceThumbnailClipMargin(Thickness margin)
src\Framework\System\Windows\Shell\WindowChrome.cs (12)
50public static Thickness GlassFrameCompleteThickness { get { return new Thickness(-1); } } 192typeof(Thickness), 194new PropertyMetadata(default(Thickness)), 195(value) => Utility.IsThicknessNonNegative((Thickness)value)); 197public Thickness ResizeBorderThickness 199get { return (Thickness)GetValue(ResizeBorderThicknessProperty); } 205typeof(Thickness), 208default(Thickness), 210(d, o) => _CoerceGlassFrameThickness((Thickness)o))); 212private static object _CoerceGlassFrameThickness(Thickness thickness) 224public Thickness GlassFrameThickness 226get { return (Thickness)GetValue(GlassFrameThicknessProperty); }
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (8)
398Thickness templateFixupMargin = default(Thickness); 498Thickness nonClientThickness = new Thickness( 692Thickness windowResizeBorderThicknessDevice = DpiHelper.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY); 800if (Utility.IsOSVistaOrNewer && _chromeInfo.GlassFrameThickness != default(Thickness) && _isGlassEnabled) 1127_isGlassEnabled = frameState && _chromeInfo.GlassFrameThickness != default(Thickness); 1389Thickness deviceGlassThickness = DpiHelper.LogicalThicknessToDevice(_chromeInfo.GlassFrameThickness, dpi.DpiScaleX, dpi.DpiScaleY); 1394Thickness windowResizeBorderThicknessDevice = DpiHelper.LogicalThicknessToDevice(SystemParameters.WindowResizeBorderThickness, dpi.DpiScaleX, dpi.DpiScaleY);
src\Framework\System\Windows\Standard\DpiHelper.cs (2)
75public static Thickness LogicalThicknessToDevice(Thickness logicalThickness, double dpiScaleX, double dpiScaleY)
src\Framework\System\Windows\Standard\Utilities.cs (1)
281public static bool IsThicknessNonNegative(Thickness thickness)
src\Framework\System\Windows\SystemParameters.cs (4)
6311public static Thickness WindowResizeBorderThickness 6340public static Thickness WindowNonClientFrameThickness 6576private static Thickness _windowNonClientFrameThickness; 6577private static Thickness _windowResizeBorderThickness;
src\Framework\System\Windows\Thickness.cs (12)
26public struct Thickness : IEquatable<Thickness> 78if (obj is Thickness) 80Thickness otherObj = (Thickness)obj; 92public bool Equals(Thickness thickness) 194internal bool IsClose(Thickness thickness) 210static internal bool AreClose(Thickness thickness0, Thickness thickness1) 233public static bool operator==(Thickness t1, Thickness t2) 249public static bool operator!=(Thickness t1, Thickness t2)
src\Framework\System\Windows\ThicknessConverter.cs (8)
150if (!(value is Thickness)) 153throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(Thickness)), "value"); 156Thickness th = (Thickness)value; 160ConstructorInfo ci = typeof(Thickness).GetConstructor(new Type[] { typeof(double), typeof(double), typeof(double), typeof(double) }); 164throw new ArgumentException(SR.Get(SRID.CannotConvertType, typeof(Thickness), destinationType.FullName)); 179static internal string ToString(Thickness th, CultureInfo cultureInfo) 199static internal Thickness FromString(string s, CultureInfo cultureInfo)
src\Framework\System\Windows\Window.cs (1)
6978Thickness margin = taskbarInfo.ThumbnailClipMargin;
PresentationFramework.Aero (13)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
26private Thickness? ThemeDefaultPadding
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
105public Thickness BorderThickness 107get { return (Thickness)GetValue(BorderThicknessProperty); } 218Thickness border = BorderThickness; 279Thickness border = BorderThickness; 317Thickness border = BorderThickness; 484private static Geometry GetBorderGeometry(Thickness thickness, Rect bounds)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (6)
183Thickness padding = Padding; 228Thickness padding = Padding; 252private Thickness DefaultPadding 256Thickness padding = new Thickness(3.0); // The default padding 257Thickness? themePadding = ThemeDefaultPadding; 268padding = (Thickness)themePadding;
PresentationFramework.Classic (34)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (27)
565typeof(Thickness), 574Thickness thickness = (Thickness)o; 586public Thickness BorderThickness 588get { return (Thickness) GetValue(BorderThicknessProperty); } 598private static Size HelperCollapseThickness(Thickness th) 604private static Rect HelperDeflateRect(Rect rt, Thickness thick) 716Thickness border = BorderThickness; 747private static Thickness ScaleThickness(Thickness t, double s) 759Thickness borderThickness = BorderThickness; 763Thickness singleThickness = ScaleThickness(borderThickness, 1.0 / classicThickness); 892private static Geometry GenerateBorderGeometry(Rect rect, Thickness borderThickness) 907private Geometry GetBorder(Rect bounds, Thickness borderThickness) 934private void DrawBorder(Brush borderBrush, Thickness borderThickness, DrawingContext dc, ref Rect bounds) 988private void DrawBorderPair(Brush highlight, Brush shadow, Thickness singleThickness, DrawingContext dc, ref Rect bounds) 997private void DrawRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1007private void DrawRaisedPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1016private void DrawSunkenBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1026private void DrawEtchedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1037private void DrawHorizontalLine(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1050private void DrawVerticalLine(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1298private void DrawThinRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1306private void DrawThinPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1314private void DrawAltRaisedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1323private void DrawAltPressedBorder(Thickness singleThickness, DrawingContext dc, ref Rect bounds) 1460public Thickness BorderThickness;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
27private Thickness? ThemeDefaultPadding
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (6)
183Thickness padding = Padding; 228Thickness padding = Padding; 252private Thickness DefaultPadding 256Thickness padding = new Thickness(3.0); // The default padding 257Thickness? themePadding = ThemeDefaultPadding; 268padding = (Thickness)themePadding;
PresentationFramework.Luna (17)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
26private Thickness? ThemeDefaultPadding
Microsoft\Windows\Themes\ScrollChrome.cs (3)
150public Thickness Padding 152get { return (Thickness)GetValue(PaddingProperty); } 235Thickness padding = Padding;
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (7)
93public Thickness BorderThickness 95get { return (Thickness)GetValue(BorderThicknessProperty); } 191Thickness thickness = BorderThickness; 209Thickness thickness = BorderThickness; 334private void DrawBorder(DrawingContext dc, ref Rect bounds, Thickness thickness, bool isUnitThickness) 460private static Rect HelperDeflateRect(Rect rt, Thickness thick) 483private static Geometry GenerateBorderGeometry(Rect rect, Thickness borderThickness)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (6)
183Thickness padding = Padding; 228Thickness padding = Padding; 252private Thickness DefaultPadding 256Thickness padding = new Thickness(3.0); // The default padding 257Thickness? themePadding = ThemeDefaultPadding; 268padding = (Thickness)themePadding;
PresentationFramework.Royale (17)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
26private Thickness? ThemeDefaultPadding
Microsoft\Windows\Themes\ScrollChrome.cs (3)
132public Thickness Padding 134get { return (Thickness) GetValue(PaddingProperty); } 217Thickness padding = Padding;
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (7)
93public Thickness BorderThickness 95get { return (Thickness)GetValue(BorderThicknessProperty); } 191Thickness thickness = BorderThickness; 209Thickness thickness = BorderThickness; 334private void DrawBorder(DrawingContext dc, ref Rect bounds, Thickness thickness, bool isUnitThickness) 460private static Rect HelperDeflateRect(Rect rt, Thickness thick) 483private static Geometry GenerateBorderGeometry(Rect rect, Thickness borderThickness)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (6)
183Thickness padding = Padding; 228Thickness padding = Padding; 252private Thickness DefaultPadding 256Thickness padding = new Thickness(3.0); // The default padding 257Thickness? themePadding = ThemeDefaultPadding; 268padding = (Thickness)themePadding;
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartConnectionPointsAdorner.cs (1)
46Thickness margin = ((FrameworkElement)AdornedElement).Margin;
System\Activities\Core\Presentation\StateMachineConnetionPointsAdorner.cs (1)
30Thickness margin = ((FrameworkElement)AdornedElement).Margin;
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (8)
57public static readonly DependencyProperty DropButtonInsetProperty = DependencyProperty.Register("DropButtonInset", typeof(Thickness), typeof(ChoiceEditor), new FrameworkPropertyMetadata(new Thickness(), FrameworkPropertyMetadataOptions.AffectsRender)); 58public static readonly DependencyProperty TextAreaInsetProperty = DependencyProperty.Register("TextAreaInset", typeof(Thickness), typeof(ChoiceEditor), new FrameworkPropertyMetadata(new Thickness(), FrameworkPropertyMetadataOptions.AffectsRender)); 231public Thickness DropButtonInset 233get { return (Thickness)this.GetValue(ChoiceEditor.DropButtonInsetProperty); } 237public Thickness TextAreaInset 239get { return (Thickness)this.GetValue(ChoiceEditor.TextAreaInsetProperty); } 887Thickness dropButtonInset = this.DropButtonInset; 888Thickness textAreaInset = this.TextAreaInset;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (2)
28Thickness margin = (Thickness)parameters[2];
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorLabelMarginConverter.cs (1)
22Thickness margin = new Thickness(0);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowMarginConverter.cs (1)
22Thickness margin = new Thickness(0);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
126Thickness margin = new Thickness(0);