spiegelp / MaterialDesignExtensions

Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
https://spiegelp.github.io/MaterialDesignExtensions/
MIT License
767 stars 123 forks source link

Can't seem to style PersistentSearch very well #59

Closed michaldivis closed 5 years ago

michaldivis commented 5 years ago

Hello,

I love what you've done with these controls so far, however, I'm having a hard time making the PersistentSearch control fit my design, since it's pretty big compared to my other Material Design controls. For some reason, changing the FontSize, Padding and Margin does nothing. I've also looked up other issues in this repo and found that the Autocomplete control has a "Dense" style that can be applied to make it smaller. From what I can tell from the theme XAML, the PersistentSearch only has one style.

Is there any way I can make the PersistentSearch smaller or better yet, apply another style?

I apologise if this question is stupid and has an easy solution. Keep up the good work! Michal

michaldivis commented 5 years ago

I've created a pull request #60 to solve this.

spiegelp commented 5 years ago

@michaldivis Please try the latest preview release. It contains your changes for a dense style. Furthermore, I added an IconSize property to PersistentSearch and set a reasonable value for it in the dense style.