Exemplo n.º 1
0
 public SketchBorder(bool isEnabled, ISketchBrush brush, double thickness, SketchBorderPosition position)
 {
     IsEnabled = isEnabled;
     Brush     = brush;
     Thickness = thickness;
     Position  = position;
 }
Exemplo n.º 2
0
        UxNode BuildBrush(ISketchBrush brush)
        {
            var solidColorBrush = brush as SketchSolidColorBrush;

            if (solidColorBrush != null)
            {
                return(BuildSolidColorBrush(solidColorBrush));
            }

            var linearGradientBrush = brush as SketchLinearGradientBrush;

            if (linearGradientBrush != null)
            {
                return(BuildLinearGradientBrush(linearGradientBrush));
            }

            return(null);
        }
Exemplo n.º 3
0
 public SketchFill(bool isEnabled, ISketchBrush brush)
 {
     IsEnabled = isEnabled;
     Brush     = brush;
 }