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);
System\Windows\Controls\Border.cs (4)
124new Thickness(),
150new Thickness(),
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),
System\Windows\ThicknessConverter.cs (5)
104return new Thickness(sourceValue);
106return new Thickness(Convert.ToDouble(source, cultureInfo));
2151 => new Thickness(lengths[0]),
2162 => new Thickness(lengths[0], lengths[1], lengths[0], lengths[1]),
2174 => new Thickness(lengths[0], lengths[1], lengths[2], lengths[3]),
MS\Internal\PtsHost\ParagraphVisual.cs (4)
37internal void DrawBackgroundAndBorder(Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
40_borderBrush != borderBrush || !Thickness.AreClose(_borderThickness, borderThickness))
61internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
158private Thickness _borderThickness; // Border thickness
System\Windows\Controls\Border.cs (15)
69/// <see cref="System.Windows.Thickness" /> containing values for each of the Left, Top, Right,
72public Thickness BorderThickness
74get { return (Thickness) GetValue(BorderThicknessProperty); }
82public Thickness Padding
84get { return (Thickness) GetValue(PaddingProperty); }
122= DependencyProperty.Register("BorderThickness", typeof(Thickness), typeof(Border),
140Thickness t = (Thickness)value;
148= DependencyProperty.Register("Padding", typeof(Thickness), typeof(Border),
216Thickness borders = this.BorderThickness;
263Thickness borders = BorderThickness;
391Thickness border = BorderThickness;
621private static Size HelperCollapseThickness(Thickness th)
635private static Rect HelperDeflateRect(Rect rt, Thickness thick)
935internal Radii(CornerRadius radii, Thickness borders, bool outer)
System\Windows\Controls\VirtualizingStackPanel.cs (24)
94internal static readonly DependencyProperty ItemsHostInsetProperty = DependencyProperty.Register("ItemsHostInset", typeof(Thickness), typeof(VirtualizingStackPanel));
1361Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
3010Thickness inset = GetItemsHostInsetForChild(firstContainer);
5291Thickness inset = GetItemsHostInsetForChild(virtualizationInfoProvider, parentItemStorageProvider, parentItem);
6393private Thickness GetItemsHostInsetForChild(IHierarchicalVirtualizationAndScrollInfo virtualizationInfoProvider, IContainItemStorage parentItemStorageProvider=null, object parentItem=null)
6416return (Thickness)container.GetValue(ItemsHostInsetProperty);
6420Thickness inset = new Thickness();
6424inset = (Thickness)box;
6429inset = (Thickness)box;
6437Thickness margin = container.Margin;
6469Thickness margin = (fe == null) ? new Thickness() : fe.Margin;
6482Thickness inset = new Thickness(left, top, right, bottom);
6499Thickness oldInset = (Thickness)box;
6605private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
6611Thickness margin = (container == null) ? new Thickness() : container.Margin;
7114Thickness inset = GetItemsHostInsetForChild(virtualizingChild);
7651Thickness inset = (Thickness)v;
11079Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
11092Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
12969private static void WriteThickness(BinaryWriter writer, ref Thickness thickness)
12983internal Thickness _inset;
13039info._inset = (Thickness)child.GetValue(ItemsHostInsetProperty);
System\Windows\Documents\TextRangeEdit.cs (15)
861if (property.PropertyType == typeof(Thickness))
864Invariant.Assert(currentValue is Thickness, "Expecting the currentValue to be of Thinkness type");
865Invariant.Assert(newValue is Thickness, "Expecting the newValue to be of Thinkness type");
867newValue = ComputeNewThicknessValue((Thickness)currentValue, (Thickness)newValue, parentFlowDirection, flowDirection, propertyValueAction);
1058private static Thickness ComputeNewThicknessValue(Thickness currentThickness, Thickness newThickness,
1226if (value is Thickness)
1228if (Paragraph.IsMarginAuto((Thickness)value))
1236/*left*/((Thickness)value).Right,
1237/*top:*/((Thickness)value).Top,
1238/*right:*/((Thickness)value).Left,
1239/*bottom:*/((Thickness)value).Bottom);
1379Thickness thickness = new Thickness(increment, -1, -1, -1);
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (32)
42private Thickness[] _keyValues;
57Type typeofProp = typeof(Thickness?);
66new PropertyMetadata((Thickness?)null, propCallback),
73new PropertyMetadata((Thickness?)null, propCallback),
80new PropertyMetadata((Thickness?)null, propCallback),
104public ThicknessAnimation(Thickness toValue, Duration duration)
116public ThicknessAnimation(Thickness toValue, Duration duration, FillBehavior fillBehavior)
129public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration)
142public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior)
215protected override Thickness GetCurrentValueCore(Thickness defaultOriginValue, Thickness defaultDestinationValue, AnimationClock animationClock)
232Thickness from = new Thickness();
233Thickness to = new Thickness();
234Thickness accumulated = new Thickness();
235Thickness foundation = new Thickness();
349Thickness accumulator = AnimatedTypeHelpers.SubtractThickness(to, from);
374_keyValues = new Thickness[2];
381_keyValues = new Thickness[2];
388_keyValues = new Thickness[1];
395_keyValues = new Thickness[1];
401_keyValues = new Thickness[1];
422Thickness? typedValue = (Thickness?)value;
442public Thickness? From
446return (Thickness?)GetValue(FromProperty);
462public Thickness? To
466return (Thickness?)GetValue(ToProperty);
482public Thickness? By
486return (Thickness?)GetValue(ByProperty);
System\Windows\ThicknessConverter.cs (10)
131if (value is not Thickness thickness)
132throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Thickness)), nameof(value));
138ConstructorInfo ci = typeof(Thickness).GetConstructor(new Type[] { typeof(double), typeof(double), typeof(double), typeof(double) });
142throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(Thickness), destinationType.FullName));
159/// <param name="th">The <see cref="Thickness"/> to convert to string.</param>
162internal static string ToString(Thickness th, CultureInfo cultureInfo)
188/// Constructs a <see cref="Thickness"/> struct out of string representation supplied by <paramref name="s"/> and the specified <paramref name="cultureInfo"/>.
190/// <param name="s">The string representation of a <see cref="Thickness"/> struct.</param>
192/// <returns>A new instance of <see cref="Thickness"/> struct representing the data contained in <paramref name="s"/>.</returns>
194internal static Thickness FromString(string s, CultureInfo cultureInfo)