Exemplo n.º 1
0
        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();
 }