public static void SetGradientBackground(Control control, GradientStyle style) { if (control == null || control.IsDisposed) { return; } control.BackgroundImageLayout = ImageLayout.Stretch; control.BackgroundImage = style.GetImage(control.Size); }
public static void SetGradientBackground(Control control, GradientStyle style) { if (control == null || control.IsDisposed) return; control.BackgroundImageLayout = ImageLayout.Stretch; control.BackgroundImage = style.GetImage(control.Size); }