MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Display Problem in DataGrid Rows When i set AlternatingRowBackground

Open
#2,056 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug up-for-grabs
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));

![image](https://user-images.githubusercontent.com/32301411/92936137-fbfd3500-f45e-11ea-97f7-6fa8d30b85e0.png)

Please resolve this problem. Thanks Again.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.