MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
DialogHost doesn't return current value when dialog is accepted from keyboard.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 16.3k
- Forks
- 3.5k
- Ø Merge
- 1 T. 22 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
DialogHost doesn't return current value when dialog is accepted from keyboard.
MaterialDesignThemes v. 4.0.0
Repository with example: https://github.com/lszczygielek/MaterialDesignInXamlToolkit-DialogHost-Focus
@Keboo wrote about it on Gitter:
I wrote a small test to also show the issue here. I did write a little UI test to reproduce the issue as well: https://github.com/Keboo/MaterialDesignInXamlToolkit/tree/dialogHostDoesNotUpdate
If anyone wants to have a go at addressing it that would be a good start. I spent a little time looking at it, and it seems like it may be a little difficult with timing to address it within the dialog host as you need to trigger the lost focus event and wait for the binding to update. This may end up being something that needs to be addressed outside of this library.
It also appears this is somewhat expected as several other people have run into similar use cases. https://www.thomasclaudiushuber.com/2008/05/02/lostfocus-textbox-vs-buttons-isdefault-property/
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem verlinkten DialogHost-Focus-Beispiel und dem UI-Test im Branch dialogHostDoesNotUpdate, um die Bestätigung per Tastatur in MaterialDesignThemes 4.0.0 zu reproduzieren. Verfolge anschließend die Verarbeitung von Fokus und Bindungsaktualisierungen durch DialogHost und überprüfe dann, dass das Bestätigen des Dialogs den aktuell im Steuerelement angezeigten Wert zurückgibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- desktop
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100