MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

ToggleButton throws exception if IsThreeState is enabled

Aperta
#2,133 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

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

Descrizione

The ToggleButton throws an exception if the "IsThreeState" property is set to true and the button is clicked.

Exception thrown: 'System.InvalidOperationException' in PresentationFramework.dll
An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll
Der Name "IndeterminateCheck" wurde im Namensbereich von "System.Windows.Controls.Grid" nicht gefunden.

Translated it would probably s.th. like: `The name "IndeterminateCheck" could not be found in the namespace of "System.Windows.Controls.Grid"`

Versions:
MaterialDesignThemes: 3.2.0
MaterialDesignColors: 1.2.7

Example Repo: https://github.com/badcel/BugMaterialDesignToggleButton.git

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

Start by running the linked BugMaterialDesignToggleButton example with MaterialDesignThemes 3.2.0 and clicking a ToggleButton with IsThreeState enabled. Trace the ToggleButton behavior around the IndeterminateCheck lookup and reproduce the InvalidOperationException. Done means three-state clicking no longer throws and the indeterminate state works.

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

Valutazione

Stack tecnologico
csharp
Ambito
desktop
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.