Skip to content

Conversation

@nicolaihenriksen
Copy link
Contributor

Fixes #3964

Moving the background changes inside of the ControlTemplate.Triggers collection changes the binding precedence order such that our IsMouseOver trigger is even closer to the DGR_Border than a local value set directly on the DataGrid (e.g. <DataGrid AlternatingRowBackground="Green" ...>) and thus takes precedence.

I moved the IsSelected trigger as well, as this seemed to suffer from a similar issue.

Before:
Issue3964

After:
Issue3964Fixed

Moving the background changes inside of the ControlTemplate trigger collection changes the binding precedence order such that our "IsMouseOver" trigger is even closer to the DGR_Border than a local value set directly on the DataGrid (i.e. AlternatingRBackground) and thus takes precedence.
@nicolaihenriksen nicolaihenriksen added this to the 5.3.1 milestone Nov 8, 2025
@Keboo Keboo merged commit 20414e4 into master Nov 10, 2025
2 checks passed
@Keboo Keboo deleted the fix3964 branch November 10, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Row hover background in DataGrid

3 participants