MahApps / MahApps.Metro

A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
https://mahapps.com
MIT License
9.32k stars 2.45k forks source link

I can't reduce the height of a button at 10 #3780

Closed Marko97IT closed 4 years ago

Marko97IT commented 4 years ago

I need to reduce the height for a button to 10 but I can't. hgfds

punker76 commented 4 years ago

@Marko97IT That’s because the default style defines a MinHeight of 25.

https://github.com/MahApps/MahApps.Metro/blob/443389cdc6e83fbd9a1d5584a48c0466ee5f3cd4/src/MahApps.Metro/Styles/Controls.Buttons.xaml#L399

So just set it to 0 and your issue is gone.