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\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\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\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\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\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\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\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)