MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

ItemsPresenter inside DataGrid Template ignore IsHitVisible="False" and allways shows selection rectange on first item

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

Nobody has claimed this yet.

bug evaluation required
Dominant language
C#
Stars
16.3k
Forks
3.5k
Avg merge
1d 22h
Merged PRs (30d)
8

Description

Release 4.0.0.2422 works well when setting IsHitVisible="False" for ItemsPresenter inside the DataGrid ControlTemplate, see below:

```xaml




....




```

Current public release 4.1.0.2556 don't work as expected with this XAML code and ignore the IsHitVisible value.

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

Reproduce the provided DataGrid ControlTemplate with IsHitTestVisible="False" on ItemsPresenter against releases 4.0.0.2422 and 4.1.0.2556. Start by tracing DataGrid and ItemsPresenter hit testing and selection rendering, then verify that the first item's selection rectangle no longer appears when hit testing is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.