In a project that I am starting I am using the 2 following libraries:
MahApps.Metro - http://mahapps.com/MahApps.Metro/
DataGridExtensions - https://github.com/dotnet/DataGridExtensions
DatagridExtensions has some pretty nice datagrid filtering tools. The only problem is that using it removes the Metro style from the datagrid. Is there any way I can keep the Metro Styling on the datagrid and use the extensions.
The only .xaml file I could find in the DataGridExtensions library was the generic.xaml file. I modified this to include BasedOn in any styles in there, as this has worked in the past:
e.g.
<Style TargetType="CheckBox" BasedOn="{StaticResource {x:Type CheckBox}}>
Setting a default header style solved the problem for me:
<Style TargetType="{x:Type DataGridColumnHeader}"
BasedOn="{StaticResource MetroDataGridColumnHeader}" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With