MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Display Problem in DataGrid Rows When i set AlternatingRowBackground
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 16.3k
- Forks
- 3.5k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 8
Description
Hi Guys.
Thanks a lot for this brilliant UserControl Set.
That was awesome for my usage.
There is an issue in mouse over on DataGrid Style when i set AlternatingRowBackground:
Here is my Code:
DataGrid.AutoGenerateColumns = true;
DataGrid.AlternationCount = 2;
DataGrid.SelectionMode = DataGridSelectionMode.Single;
DataGrid.SelectionUnit = DataGridSelectionUnit.FullRow;
DataGrid.IsReadOnly = true;
DataGrid.AlternatingRowBackground = new SolidColorBrush(Color.FromRgb(240, 240, 240));

Please resolve this problem. Thanks Again.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report provides a WPF DataGrid configuration and screenshot but names no repository files or tests. Reproduce the mouse-over behavior with AlternatingRowBackground enabled, then trace the DataGrid styling entry point and verify that alternating rows retain the intended hover appearance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- design, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100