public static T Source <T>(this T control, Action <GradientBuilder> build) where T : IGradientControl { var builder = new GradientBuilder(); build.Invoke(builder); control.GradientSource = builder.BuildSource(); return(control); }
public static void BuildFor(this GradientBuilder builder, IGradientControl control) { control.GradientSource = builder.BuildSource(); }