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);
System\Windows\Controls\Border.cs (4)
120new Thickness(),
146new Thickness(),
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),
System\Windows\ThicknessConverter.cs (5)
97return new Thickness(sourceValue);
99return new Thickness(Convert.ToDouble(source, cultureInfo));
2081 => new Thickness(lengths[0]),
2092 => new Thickness(lengths[0], lengths[1], lengths[0], lengths[1]),
2104 => new Thickness(lengths[0], lengths[1], lengths[2], lengths[3]),
MS\Internal\PtsHost\ParagraphVisual.cs (4)
36internal void DrawBackgroundAndBorder(Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
39_borderBrush != borderBrush || !Thickness.AreClose(_borderThickness, borderThickness))
60internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
165private Thickness _borderThickness; // Border thickness
System\Windows\Controls\Border.cs (15)
65/// <see cref="System.Windows.Thickness" /> containing values for each of the Left, Top, Right,
68public Thickness BorderThickness
70get { return (Thickness) GetValue(BorderThicknessProperty); }
78public Thickness Padding
80get { return (Thickness) GetValue(PaddingProperty); }
118= DependencyProperty.Register("BorderThickness", typeof(Thickness), typeof(Border),
136Thickness t = (Thickness)value;
144= DependencyProperty.Register("Padding", typeof(Thickness), typeof(Border),
212Thickness borders = this.BorderThickness;
259Thickness borders = BorderThickness;
387Thickness border = BorderThickness;
625private static Size HelperCollapseThickness(Thickness th)
639private static Rect HelperDeflateRect(Rect rt, Thickness thick)
939internal Radii(CornerRadius radii, Thickness borders, bool outer)
System\Windows\Controls\VirtualizingStackPanel.cs (24)
89internal static readonly DependencyProperty ItemsHostInsetProperty = DependencyProperty.Register("ItemsHostInset", typeof(Thickness), typeof(VirtualizingStackPanel));
1356Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
2994Thickness inset = GetItemsHostInsetForChild(firstContainer);
5263Thickness inset = GetItemsHostInsetForChild(virtualizationInfoProvider, parentItemStorageProvider, parentItem);
6365private Thickness GetItemsHostInsetForChild(IHierarchicalVirtualizationAndScrollInfo virtualizationInfoProvider, IContainItemStorage parentItemStorageProvider=null, object parentItem=null)
6388return (Thickness)container.GetValue(ItemsHostInsetProperty);
6392Thickness inset = new Thickness();
6396inset = (Thickness)box;
6401inset = (Thickness)box;
6409Thickness margin = container.Margin;
6441Thickness margin = (fe == null) ? new Thickness() : fe.Margin;
6454Thickness inset = new Thickness(left, top, right, bottom);
6471Thickness oldInset = (Thickness)box;
6577private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
6583Thickness margin = (container == null) ? new Thickness() : container.Margin;
7088Thickness inset = GetItemsHostInsetForChild(virtualizingChild);
7625Thickness inset = (Thickness)v;
11052Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
11065Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
12935private static void WriteThickness(BinaryWriter writer, ref Thickness thickness)
12949internal Thickness _inset;
13008_inset = (Thickness)child.GetValue(ItemsHostInsetProperty)
System\Windows\Documents\TextRangeEdit.cs (15)
859if (property.PropertyType == typeof(Thickness))
862Invariant.Assert(currentValue is Thickness, "Expecting the currentValue to be of Thinkness type");
863Invariant.Assert(newValue is Thickness, "Expecting the newValue to be of Thinkness type");
865newValue = ComputeNewThicknessValue((Thickness)currentValue, (Thickness)newValue, parentFlowDirection, flowDirection, propertyValueAction);
1056private static Thickness ComputeNewThicknessValue(Thickness currentThickness, Thickness newThickness,
1224if (value is Thickness)
1226if (Paragraph.IsMarginAuto((Thickness)value))
1234/*left*/((Thickness)value).Right,
1235/*top:*/((Thickness)value).Top,
1236/*right:*/((Thickness)value).Left,
1237/*bottom:*/((Thickness)value).Bottom);
1377Thickness thickness = new Thickness(increment, -1, -1, -1);
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (32)
33private Thickness[] _keyValues;
48Type typeofProp = typeof(Thickness?);
57new PropertyMetadata((Thickness?)null, propCallback),
64new PropertyMetadata((Thickness?)null, propCallback),
71new PropertyMetadata((Thickness?)null, propCallback),
95public ThicknessAnimation(Thickness toValue, Duration duration)
107public ThicknessAnimation(Thickness toValue, Duration duration, FillBehavior fillBehavior)
120public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration)
133public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior)
206protected override Thickness GetCurrentValueCore(Thickness defaultOriginValue, Thickness defaultDestinationValue, AnimationClock animationClock)
223Thickness from = new Thickness();
224Thickness to = new Thickness();
225Thickness accumulated = new Thickness();
226Thickness foundation = new Thickness();
340Thickness accumulator = AnimatedTypeHelpers.SubtractThickness(to, from);
365_keyValues = new Thickness[2];
372_keyValues = new Thickness[2];
379_keyValues = new Thickness[1];
386_keyValues = new Thickness[1];
392_keyValues = new Thickness[1];
413Thickness? typedValue = (Thickness?)value;
433public Thickness? From
437return (Thickness?)GetValue(FromProperty);
453public Thickness? To
457return (Thickness?)GetValue(ToProperty);
473public Thickness? By
477return (Thickness?)GetValue(ByProperty);
System\Windows\ThicknessConverter.cs (10)
124if (value is not Thickness thickness)
125throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Thickness)), nameof(value));
131ConstructorInfo ci = typeof(Thickness).GetConstructor(new Type[] { typeof(double), typeof(double), typeof(double), typeof(double) });
135throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(Thickness), destinationType.FullName));
152/// <param name="th">The <see cref="Thickness"/> to convert to string.</param>
155internal static string ToString(Thickness th, CultureInfo cultureInfo)
181/// Constructs a <see cref="Thickness"/> struct out of string representation supplied by <paramref name="s"/> and the specified <paramref name="cultureInfo"/>.
183/// <param name="s">The string representation of a <see cref="Thickness"/> struct.</param>
185/// <returns>A new instance of <see cref="Thickness"/> struct representing the data contained in <paramref name="s"/>.</returns>
187internal static Thickness FromString(string s, CultureInfo cultureInfo)