MS\Internal\PtsHost\SubpageParaClient.cs (4)
79mbp.Border = new Thickness(mbp.Border.Left, 0.0, mbp.Border.Right, mbp.Border.Bottom);
80mbp.Padding = new Thickness(mbp.Padding.Left, 0.0, mbp.Padding.Right, mbp.Padding.Bottom);
85mbp.Border = new Thickness(mbp.Border.Left, mbp.Border.Top, mbp.Border.Right, 0.0);
86mbp.Padding = new Thickness(mbp.Padding.Left, mbp.Padding.Top, mbp.Padding.Right, 0.0);
System\Windows\Controls\Border.cs (4)
119new Thickness(),
145new Thickness(),
215borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
262borders = new Thickness(UIElement.RoundLayoutValue(borders.Left, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Top, dpi.DpiScaleY),
System\Windows\ThicknessConverter.cs (5)
96return new Thickness(sourceValue);
98return new Thickness(Convert.ToDouble(source, cultureInfo));
2071 => new Thickness(lengths[0]),
2082 => new Thickness(lengths[0], lengths[1], lengths[0], lengths[1]),
2094 => new Thickness(lengths[0], lengths[1], lengths[2], lengths[3]),
MS\Internal\PtsHost\ParagraphVisual.cs (4)
35internal void DrawBackgroundAndBorder(Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
38_borderBrush != borderBrush || !Thickness.AreClose(_borderThickness, borderThickness))
59internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
164private Thickness _borderThickness; // Border thickness
System\Windows\Controls\Border.cs (15)
64/// <see cref="System.Windows.Thickness" /> containing values for each of the Left, Top, Right,
67public Thickness BorderThickness
69get { return (Thickness) GetValue(BorderThicknessProperty); }
77public Thickness Padding
79get { return (Thickness) GetValue(PaddingProperty); }
117= DependencyProperty.Register("BorderThickness", typeof(Thickness), typeof(Border),
135Thickness t = (Thickness)value;
143= DependencyProperty.Register("Padding", typeof(Thickness), typeof(Border),
211Thickness borders = this.BorderThickness;
258Thickness borders = BorderThickness;
386Thickness border = BorderThickness;
624private static Size HelperCollapseThickness(Thickness th)
638private static Rect HelperDeflateRect(Rect rt, Thickness thick)
938internal Radii(CornerRadius radii, Thickness borders, bool outer)
System\Windows\Controls\VirtualizingStackPanel.cs (24)
88internal static readonly DependencyProperty ItemsHostInsetProperty = DependencyProperty.Register("ItemsHostInset", typeof(Thickness), typeof(VirtualizingStackPanel));
1355Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
2993Thickness inset = GetItemsHostInsetForChild(firstContainer);
5262Thickness inset = GetItemsHostInsetForChild(virtualizationInfoProvider, parentItemStorageProvider, parentItem);
6364private Thickness GetItemsHostInsetForChild(IHierarchicalVirtualizationAndScrollInfo virtualizationInfoProvider, IContainItemStorage parentItemStorageProvider=null, object parentItem=null)
6387return (Thickness)container.GetValue(ItemsHostInsetProperty);
6391Thickness inset = new Thickness();
6395inset = (Thickness)box;
6400inset = (Thickness)box;
6408Thickness margin = container.Margin;
6440Thickness margin = (fe == null) ? new Thickness() : fe.Margin;
6453Thickness inset = new Thickness(left, top, right, bottom);
6470Thickness oldInset = (Thickness)box;
6576private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
6582Thickness margin = (container == null) ? new Thickness() : container.Margin;
7087Thickness inset = GetItemsHostInsetForChild(virtualizingChild);
7624Thickness inset = (Thickness)v;
11051Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
11064Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
12934private static void WriteThickness(BinaryWriter writer, ref Thickness thickness)
12948internal Thickness _inset;
13007_inset = (Thickness)child.GetValue(ItemsHostInsetProperty)
System\Windows\Documents\TextRangeEdit.cs (15)
858if (property.PropertyType == typeof(Thickness))
861Invariant.Assert(currentValue is Thickness, "Expecting the currentValue to be of Thinkness type");
862Invariant.Assert(newValue is Thickness, "Expecting the newValue to be of Thinkness type");
864newValue = ComputeNewThicknessValue((Thickness)currentValue, (Thickness)newValue, parentFlowDirection, flowDirection, propertyValueAction);
1055private static Thickness ComputeNewThicknessValue(Thickness currentThickness, Thickness newThickness,
1223if (value is Thickness)
1225if (Paragraph.IsMarginAuto((Thickness)value))
1233/*left*/((Thickness)value).Right,
1234/*top:*/((Thickness)value).Top,
1235/*right:*/((Thickness)value).Left,
1236/*bottom:*/((Thickness)value).Bottom);
1376Thickness thickness = new Thickness(increment, -1, -1, -1);
System\Windows\Media\Animation\Generated\ThicknessAnimation.cs (32)
32private Thickness[] _keyValues;
47Type typeofProp = typeof(Thickness?);
56new PropertyMetadata((Thickness?)null, propCallback),
63new PropertyMetadata((Thickness?)null, propCallback),
70new PropertyMetadata((Thickness?)null, propCallback),
94public ThicknessAnimation(Thickness toValue, Duration duration)
106public ThicknessAnimation(Thickness toValue, Duration duration, FillBehavior fillBehavior)
119public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration)
132public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior)
205protected override Thickness GetCurrentValueCore(Thickness defaultOriginValue, Thickness defaultDestinationValue, AnimationClock animationClock)
222Thickness from = new Thickness();
223Thickness to = new Thickness();
224Thickness accumulated = new Thickness();
225Thickness foundation = new Thickness();
339Thickness accumulator = AnimatedTypeHelpers.SubtractThickness(to, from);
364_keyValues = new Thickness[2];
371_keyValues = new Thickness[2];
378_keyValues = new Thickness[1];
385_keyValues = new Thickness[1];
391_keyValues = new Thickness[1];
412Thickness? typedValue = (Thickness?)value;
432public Thickness? From
436return (Thickness?)GetValue(FromProperty);
452public Thickness? To
456return (Thickness?)GetValue(ToProperty);
472public Thickness? By
476return (Thickness?)GetValue(ByProperty);
System\Windows\ThicknessConverter.cs (10)
123if (value is not Thickness thickness)
124throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Thickness)), nameof(value));
130ConstructorInfo ci = typeof(Thickness).GetConstructor(new Type[] { typeof(double), typeof(double), typeof(double), typeof(double) });
134throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(Thickness), destinationType.FullName));
151/// <param name="th">The <see cref="Thickness"/> to convert to string.</param>
154internal static string ToString(Thickness th, CultureInfo cultureInfo)
180/// Constructs a <see cref="Thickness"/> struct out of string representation supplied by <paramref name="s"/> and the specified <paramref name="cultureInfo"/>.
182/// <param name="s">The string representation of a <see cref="Thickness"/> struct.</param>
184/// <returns>A new instance of <see cref="Thickness"/> struct representing the data contained in <paramref name="s"/>.</returns>
186internal static Thickness FromString(string s, CultureInfo cultureInfo)