MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

MaterialDesignDataGridTextColumnPopupEditingStyle: Mouse and focus issues

Offen
#493 3 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug datagrid up-for-grabs
Vorherrschende Sprache
C#
Sterne
16.3k
Forks
3.5k
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
8

Beschreibung

When you double click on a cell which has `EditingElementStyle="{StaticResource MaterialDesignDataGridTextColumnPopupEditingStyle}"` defined, the popup appears but there are a few issues:

1) You can't move the cursor using the mouse and can't select text with the mouse (although right clicking brings up the context menu correctly).
2) If the cell editing popup is open and you change focus to another app, the popup remains on top of the other application.
3) (Minor/opinion) The cursor's position is at the beginning of the TextBox when the popup editor opens (I think this would typically be at the end?)

To reproduce:
- Open the WPF demo
- Selecting the "Grids" page using the menu
- Double click on a cell in the _Name_ or _Description_ columns to start editing
- Try using the left mouse button to move the cursor or select text inside the popup
- Switch to another application while the cell editor is open

Here's a screenshot of the popup over another window.
![popup_example](https://cloud.githubusercontent.com/assets/6824706/18284485/bc14b9d0-742f-11e6-8c24-ee7fdd55cbb8.png)

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der Grids-Seite der WPF-Demo und dem MaterialDesignDataGridTextColumnPopupEditingStyle, der für die Spalten Name und Description verwendet wird. Stelle das Popup-Verhalten per Doppelklick nach und verfolge anschließend die Behandlung der Mausauswahl, des Anwendungsfokus und der anfänglichen Cursorposition im Popup-Editor. Erledigt ist es, wenn die Bearbeitung per Maus funktioniert, das Popup nicht über einer anderen Anwendung bleibt und das Cursorverhalten berücksichtigt ist.

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

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.