public static GradientView ToNativeView(this MultiGradient target, CGRect frame)
 {
     return(new GradientView(target)
     {
         Frame = frame
     });
 }
예제 #2
0
 public GradientLayer(Gradient[] gradients)
 {
     this.multiGradient = new MultiGradient()
     {
         Gradients = gradients
     };
     Type = GradientType.Multi;
     Initalize();
 }
예제 #3
0
 public GradientView(Gradient[] gradients)
 {
     this.multiGradient = new MultiGradient()
     {
         Gradients = gradients
     };
     Type            = GradientType.Multi;
     BackgroundColor = UIColor.Clear;
 }
 public static GradientDrawable Draw(this MultiGradient target, RectF bounds)
 {
     return(null);
 }
예제 #5
0
 public GradientLayer(MultiGradient gradient)
 {
     this.multiGradient = gradient;
     Type = GradientType.Multi;
     Initalize();
 }
예제 #6
0
 public GradientView(MultiGradient gradient)
 {
     this.multiGradient = gradient;
     Type            = GradientType.Multi;
     BackgroundColor = UIColor.Clear;
 }
 public static void Draw(this MultiGradient target, CGContext ctx, CGRect bounds)
 {
     target.Gradients.Draw(ctx, bounds);
 }