-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataGrid column header style not congruent with .NET 9 / Win 11 styles #117
Comments
If you use custom styles for the data grid, you must use custom styles for the headers, too |
So this could be an issue from the Win 11 style pack I added in my resources? Should I report this in WPF repo? |
Even if this custom styles are provided by WPF, they are still custom styles, affecting only the controls included in these custom styles. DGX styles rely on the DataGridExtensions/src/DataGridExtensions/Themes/Generic.xaml Lines 241 to 245 in a8b0e4a
See e.g. here: |
I am using <Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource MahApps.Styles.DataGridColumnHeader}"/> For |
I have a simple window with a DataGrid inside.
The project is targeting .NET 9 and Win 11 theming is enabled by adding the resources in
App.xaml
file:Column headers are displayed without taking into account the Win 11 styling.
Current behavior:
Expected behavior (I got this by removing
dgx:DataGridFilter.IsAutoFilterEnabled="True"
from my DataGrid XAML):Note that the headers are displayed but the lack of contrast make them almost unreadable.
I'm opening this issue, but I'm ready to forward it to WPF repo if this is not a DataGridExtension-related issue.
The text was updated successfully, but these errors were encountered: