Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello :-) I found strange behaviour if I set GradientBrushes: I use this class: 

        public static Color MLTRed = Color.FromArgb(237, 27, 36);

        public static ButtonVisualStyle MLTButtonStyle

        {

            get

            {

                ButtonVisualStyle s = new ButtonVisualStyle();

                s.GradientBrush = new BrushInfo(GradientStyle.ForwardDiagonal, Commons.MLTRed, Color.Snow);

                s.FocusedGradientBrush = new BrushInfo(GradientStyle.ForwardDiagonal, Commons.MLTRed, Color.Snow);

                s.HoverGradientBrush = new BrushInfo(GradientStyle.ForwardDiagonal, Color.Red, Color.Yellow);

                s.PressedGradientBrush = new BrushInfo(GradientStyle.ForwardDiagonal, Color.Red, Color.YellowGreen);

                s.DisabledGradientBrush = new BrushInfo(GradientStyle.ForwardDiagonal, Commons.MLTRed, Color.Snow);


                return s;

            }

        }

If I do this, a focused Button looks like the disabled Button. If I delete the line to set the disabledgradientbrush, then the app crashes with a NULL-Reference - Error if I try to focus the Button.

Also tried with the latest reference from Nuget (...45) - just the same :-)

Thanks a lot