MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Glitch with controls inside cards

Aperta
#2,907 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug evaluation required
Lingua principale
C#
Stelle
16.3k
Fork
3.5k
Merge medio
1g 22h
PR unite (30g)
8

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il comportamento segnalato di Button e DataGridView dentro e fuori da una scheda, usando i temi scuro e chiaro descritti nell’issue. Confronta i risultati visivi nella versione 4.5.0; il lavoro è completato quando i controlli all’interno delle schede vengono visualizzati senza il glitch segnalato in entrambi i temi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
design, desktop
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
28/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.