Skip to content

Fix DataGrid Fluent control style #10445

Open
Open

Description

@dipeshmsft

Description

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 :

Activity

  1. 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
  2. changed the title [-]Fix DataGrid fluent control style[/-] [+]Fix DataGrid Fluent control style[/+] on Feb 11, 2025
  3. self-assigned this
    on Feb 11, 2025
  4. added this to the milestone on Feb 11, 2025
  5. moved this to 🏗 In Progress in WPF Fluent Themingon Feb 12, 2025
  6. modified the milestones: , 10.0.0 on Apr 9, 2025
  7. moved this from 🏗 In Progress to 🥅 Todo in WPF Fluent Themingon May 21, 2025
  8. dipeshmsft commented on Jun 5, 2025

    @dipeshmsft
    MemberAuthor

    @robert-abeo 's comment from other DataGrid issue :

    • IMO it is more similar to the old Aero2 style rather than the Fluent2 look-and-feel (Fluent2 would look more similar to Fluent UI Blazor library as noted in Fluent2 DataGrid Style Doesn't Match Theme #9562, Fix DataGrid Fluent control style #10445)
    • 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.

    Image

  9. moved this from 🥅 Todo to 🏗 In Progress in WPF Fluent Themingon Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions