MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Glitch with controls inside cards

Open
#2,907 6 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

### Bug explanation

It appears that there is a visual glitch whenever a certain controls are clicked on dark theme (when they're inside a card).

An example:

```



```

**Results (when inside a card):**

![P2FCXguasE](https://user-images.githubusercontent.com/14929605/194829238-e483150a-ef18-4064-8f2c-d2b75c3bfe2b.gif)

**Results (when I put the exact same code outside of the card):**

![nVxHWSuinA](https://user-images.githubusercontent.com/14929605/194829418-e8956519-5be9-4a17-93fa-3d2f033faf42.gif)

Same thing with a DataGridView when it's inside the card (it's not that apparent, but you can see the glitch on the left side of the sort arrow:

![X332xQt42Y](https://user-images.githubusercontent.com/14929605/194829777-da313dae-e826-4bc7-8bc0-423a48fffcda.gif)

This also happens with the Light theme switched ON.

What could be the problem here? I'm suspecting its the window hosting this UserControl, but I'm not sure where to start looking.
If I host these buttons on a dialog, or something, they work just fine.

### Version

4.5.0

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

Start by reproducing the reported Button and DataGridView behavior inside and outside a card using the dark and light themes described in the issue. Compare the visual results in version 4.5.0; done means controls inside cards render without the reported glitch in both themes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.