Exemplo n.º 1
0
 internal CSSBorderRadiusProperty()
     : base(PropertyNames.BorderRadius)
 {
     _inherited   = false;
     _topRight    = new CSSBorderTopRightRadiusProperty();
     _bottomRight = new CSSBorderBottomRightRadiusProperty();
     _bottomLeft  = new CSSBorderBottomLeftRadiusProperty();
     _topLeft     = new CSSBorderTopLeftRadiusProperty();
 }
Exemplo n.º 2
0
        Boolean Check(CSSValue[] values)
        {
            var target = new CSSProperty[] { new CSSBorderBottomLeftRadiusProperty(), new CSSBorderBottomRightRadiusProperty(), new CSSBorderTopLeftRadiusProperty(), new CSSBorderTopRightRadiusProperty() };

            for (int i = 0; i < 4; i++)
            {
                target[i].Value = values[i];

                if (target[i].Value != values[i])
                {
                    return(false);
                }
            }

            _bottomLeft  = (CSSBorderBottomLeftRadiusProperty)target[0];
            _bottomRight = (CSSBorderBottomRightRadiusProperty)target[1];
            _topLeft     = (CSSBorderTopLeftRadiusProperty)target[2];
            _topRight    = (CSSBorderTopRightRadiusProperty)target[3];
            return(true);
        }