예제 #1
0
 protected override Boolean IsValid(ICssValue value)
 {
     return(CssBorderProperty.Converter.TryConvert(value, m =>
     {
         _width.TrySetValue(m.Item1);
         _style.TrySetValue(m.Item2);
         _color.TrySetValue(m.Item3);
     }));
 }
예제 #2
0
 /// <summary>
 /// Determines if the given value represents a valid state of this property.
 /// </summary>
 /// <param name="value">The state that should be used.</param>
 /// <returns>True if the state is valid, otherwise false.</returns>
 protected override Boolean IsValid(ICssValue value)
 {
     return(Converter.TryConvert(value, m =>
     {
         _top.TrySetValue(m.Item1);
         _right.TrySetValue(m.Item2);
         _bottom.TrySetValue(m.Item3);
         _left.TrySetValue(m.Item4);
     }));
 }
예제 #3
0
 protected override Boolean IsValid(ICssValue value)
 {
     return(Converter.TryConvert(value, m =>
     {
         _topWidth.TrySetValue(m.Item1);
         _topStyle.TrySetValue(m.Item2);
         _topColor.TrySetValue(m.Item3);
         _leftWidth.TrySetValue(m.Item1);
         _leftStyle.TrySetValue(m.Item2);
         _leftColor.TrySetValue(m.Item3);
         _rightWidth.TrySetValue(m.Item1);
         _rightStyle.TrySetValue(m.Item2);
         _rightColor.TrySetValue(m.Item3);
         _bottomWidth.TrySetValue(m.Item1);
         _bottomStyle.TrySetValue(m.Item2);
         _bottomColor.TrySetValue(m.Item3);
     }));
 }