IgnaceMaes / MaterialSkin

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

MaterialButton with no AccessKeys #239

Closed DBenS closed 5 years ago

DBenS commented 5 years ago

Hi,

I see that both MaterialRaisedButton and MaterialFlatButton have no "AccessKeys", the underlined letter which appear when we put an ampersand before it (eg &Paste).

It's simple to do it. You just have to add "HotkeyPrefix=HotkeyPrefix.Show" in the DrawString command of the both controls. Like this:

new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center, HotkeyPrefix=HotkeyPrefix.Show });

I hope had contributed to everyone.