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);
3003Thickness inset = GetItemsHostInsetForChild(firstContainer);
5284Thickness inset = GetItemsHostInsetForChild(virtualizationInfoProvider, parentItemStorageProvider, parentItem);
6386private Thickness GetItemsHostInsetForChild(IHierarchicalVirtualizationAndScrollInfo virtualizationInfoProvider, IContainItemStorage parentItemStorageProvider=null, object parentItem=null)
6409return (Thickness)container.GetValue(ItemsHostInsetProperty);
6413Thickness inset = new Thickness();
6417inset = (Thickness)box;
6422inset = (Thickness)box;
6430Thickness margin = container.Margin;
6462Thickness margin = (fe == null) ? new Thickness() : fe.Margin;
6475Thickness inset = new Thickness(left, top, right, bottom);
6492Thickness oldInset = (Thickness)box;
6598private bool IsHeaderBeforeItems(bool isHorizontal, FrameworkElement container, ref Thickness inset)
6604Thickness margin = (container == null) ? new Thickness() : container.Margin;
7109Thickness inset = GetItemsHostInsetForChild(virtualizingChild);
7646Thickness inset = (Thickness)v;
11076Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
11089Thickness inset = GetItemsHostInsetForChild(virtualizingElement);
12959private static void WriteThickness(BinaryWriter writer, ref Thickness thickness)
12973internal Thickness _inset;
13032_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)
31private Thickness[] _keyValues;
46Type typeofProp = typeof(Thickness?);
55new PropertyMetadata((Thickness?)null, propCallback),
62new PropertyMetadata((Thickness?)null, propCallback),
69new PropertyMetadata((Thickness?)null, propCallback),
93public ThicknessAnimation(Thickness toValue, Duration duration)
105public ThicknessAnimation(Thickness toValue, Duration duration, FillBehavior fillBehavior)
118public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration)
131public ThicknessAnimation(Thickness fromValue, Thickness toValue, Duration duration, FillBehavior fillBehavior)
204protected override Thickness GetCurrentValueCore(Thickness defaultOriginValue, Thickness defaultDestinationValue, AnimationClock animationClock)
221Thickness from = new Thickness();
222Thickness to = new Thickness();
223Thickness accumulated = new Thickness();
224Thickness foundation = new Thickness();
338Thickness accumulator = AnimatedTypeHelpers.SubtractThickness(to, from);
363_keyValues = new Thickness[2];
370_keyValues = new Thickness[2];
377_keyValues = new Thickness[1];
384_keyValues = new Thickness[1];
390_keyValues = new Thickness[1];
411Thickness? typedValue = (Thickness?)value;
431public Thickness? From
435return (Thickness?)GetValue(FromProperty);
451public Thickness? To
455return (Thickness?)GetValue(ToProperty);
471public Thickness? By
475return (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)