leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
437 stars 132 forks source link

Fix MaterialExpansionPanel to apply ShowValidationButtons property #328

Closed Simonaalina25 closed 2 years ago

Simonaalina25 commented 2 years ago

I noticed when using the Material Expansion Panel that when I set the property Show Validation Buttons to false it only turns visibility false to the line above and the buttons are still visible. I added in UpdateRects the code needed for setting the visibility of the buttons according to the property.

P.S. This being only my second pull request ever I hope I did everything as it should be done and that it works well. I'm really sorry if I messed something up!