///<summary> ///Returns a new Border object from the style information provided ///</summary> public Border ToBorder() { Border border = new Border(); border.TopBorder = TopBorder.CloneElement <TopBorder>(); border.LeftBorder = LeftBorder.CloneElement <LeftBorder>(); border.BottomBorder = BottomBorder.CloneElement <BottomBorder>(); border.RightBorder = RightBorder.CloneElement <RightBorder>(); border.DiagonalBorder = new DiagonalBorder(); return(border); }
///<summary> ///Returns a new Border object from the style information provided ///</summary> public Border ToBorder() { var border = new Border { TopBorder = TopBorder.CloneElement <TopBorder>(), LeftBorder = LeftBorder.CloneElement <LeftBorder>(), BottomBorder = BottomBorder.CloneElement <BottomBorder>(), RightBorder = RightBorder.CloneElement <RightBorder>(), DiagonalBorder = new DiagonalBorder() }; return(border); }