MahApps Metro and DataGridExtensions

In the project I am running, I use the following two libraries:

MahApps.Metro - http://mahapps.com/MahApps.Metro/

DataGridExtensions - https://datagridextensions.codeplex.com/

DatagridExtensions has some pretty good data filtering tools. The only problem is that using this method removes the Metro style from the datagrid. Is there a way to keep the Metro Styling style on a datagrid and use 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 there, as it worked in the past:

eg.

<Style TargetType="CheckBox" BasedOn="{StaticResource {x:Type CheckBox}}> 
+7
c # wpf wpfdatagrid mahapps.metro
source share
1 answer

Setting the default header style solved the problem for me:

 <Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource MetroDataGridColumnHeader}" /> 
+2
source share

All Articles