MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Glitch with controls inside cards
- 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):**

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

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:

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
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