Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.52k stars 450 forks source link

Slim ComboBox and TextBox for embedding in a DataGridCell #432

Open clovett opened 2 years ago

clovett commented 2 years ago

I am moving my Money app to ModernWPF and one thing that seems hard is finding slim textbox and combobox controls for embedding in a DataGrid, does ModernWPF have anything like that? This is what I had before:

image

And this is what it looks like with modern wpf, even with padding set to 0 and border thickness set to 0 and so on:

image

Any ideas, short of grabbing the entire modern wpf templates and slimming them down myself... ?

clovett commented 2 years ago

Hey, I found this ~\ModernWpf\ModernWpf\DensityStyles\Compact.xaml which is helpful. It gets me most of the way there.

image

But I would like to also remove the accented focus rectangle if possible...

ekdahl commented 1 year ago

How can this compact style be applied for all DataGrids or one DataGrid?