Пример #1
0
        ///<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);
        }
Пример #2
0
        ///<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);
        }