leocb / MaterialSkin

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

MaterialButton - Auto wordwrap #59

Open j-rood opened 4 years ago

j-rood commented 4 years ago

Hello,

I noticed the word wrapping is missing for the material button

image

leocb commented 4 years ago

Buttons should not have long messages nor have 2 or more lines, that's a google material design principle. You can always use the autosize property.

j-rood commented 4 years ago

I completely understand that, I just think about the case where you want to have every of your buttons to have a consistent size between them

leocb commented 4 years ago

I'll take a look at it

leocb commented 4 years ago

Hi @j-rood, this can be easily achieved if you modify the function that calls the text render on the button, you can take a look at how I do this on the MaterialLabel.