You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is supposed to track the DataGrid Fluent style issues. Apart from the things mentioned in the parent issue #10393, as part of this issue we will track the following fluent issues as well :
changed the title [-]• [DataGrid](https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.datagrid)[/-][+]Fix DataGrid fluent control style[/+]on Feb 11, 2025
The headers (due to background) are difficult to distinguish from the rest of the content IMO. In my own styling these were changed to standard button background/border brushes (ControlFillColorDefault, ControlFillColorSecondary for PointerOver and ControlFillColorTertiary for Pressed. These match Button)
You are placing the row selection indicator "pill" in the row header -- which may itself be disabled and hidden. So this can't work in the general sense
In my testing a solid background actually was better for selection because:
It allows for alternating row backgrounds in more cases (without visual confusion)
It allows a pointer-over background to be much more visually different
The existing Fluent2 DataGrid selection style matches what was done for ListBox (i.e. it's similar to Aero2 rather than the new Fluent2 ListView/ComboBox). The reasons for that are likely the same.
For reference here is what a custom "Fluent2" styled DataGrid looks like on my end.
Activity
[-]• [DataGrid](https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.datagrid)[/-][+]Fix DataGrid fluent control style[/+][-]Fix DataGrid fluent control style[/-][+]Fix DataGrid Fluent control style[/+]dipeshmsft commentedon Jun 5, 2025
@robert-abeo 's comment from other DataGrid issue :
For reference here is what a custom "Fluent2" styled DataGrid looks like on my end.