internal Padding GetBorderThickness() { Padding result = this.ownBorderThickness = this.GetOwnBorderThickness(); for (int i = 0; i < this.Children.Count; i++) { if (this.Children[i] is BorderPrimitive) { BorderPrimitive childBorder = this.Children[i] as BorderPrimitive; result = Padding.Add(result, childBorder.GetBorderThickness()); } } this.BorderThickness = result; return(result); }
public Padding GetBorderThickness() { Padding p1 = this.ownBorderThickness = this.GetOwnBorderThickness(); for (int index = 0; index < this.Children.Count; ++index) { if (this.Children[index] is BorderPrimitive) { BorderPrimitive child = this.Children[index] as BorderPrimitive; p1 = Padding.Add(p1, child.GetBorderThickness()); } } this.BorderThickness = p1; return(p1); }