Esempio n. 1
0
        public RoundedCorners(BorderProperty border)
        {
            Border = border;

            // Grab the computed style:
            Computed = border.RenderData.computedStyle;

            // Create the inverse border set:
            InverseBorder = new RoundBorderInverseProperty(border.RenderData);
        }
Esempio n. 2
0
        /// <summary>Creates a new rounded corner in the given position.</summary>
        public RoundCorner(RoundedCorners roundCorners, RoundCornerPosition position)
        {
            Position      = position;
            RoundCorners  = roundCorners;
            Border        = roundCorners.Border;
            InverseBorder = roundCorners.InverseBorder;

            // Get the to index:
            ToIndex = (int)position;

            // Get the from index:
            FromIndex = ToIndex - 1;

            // May need to wrap it:
            if (FromIndex == -1)
            {
                FromIndex = 3;
            }
        }