picoe / Eto

Cross platform GUI framework for desktop and mobile applications in .NET
Other
3.55k stars 323 forks source link

WPF ComboBoxCell: dropdown items not selected by mouse if only one or last row #2546

Open Serg-Norseman opened 11 months ago

Serg-Norseman commented 11 months ago

In what there can be such problem: I use GridView, 3 columns, two of them - with ComboBoxCell; drop-down lists (DataStore) are filled in and work out correctly - all items are in place; if I start editing a cell and select the drop-down list value from the keyboard (Up/Down buttons) - any value is correctly selected and enters to the string property of row's object (the object's setter is called, the assignment works correctly); if I start editing a cell and select the value of the dropdown list with the mouse - the row object property setter is not called.

On Gtk everything works correctly. The error is present only with Wpf. Moreover, if I add multiple rows to the GridView - the dropdown selection suddenly starts working if the bottom edge of the dropdown is within the last row in the GridView.

The problem is confirmed in Eto.Test.Wpf.exe - exactly the same behavior in the last lines.

Specifications

Serg-Norseman commented 11 months ago

1658

ManuelHu commented 7 months ago

As the author of #1658, I am not sure what happened in between. This definitely worked after I had fixed it in #1662 ;-)

In the mean time there were 3 changes to this file that changed click handling:

sadly I don't have a full dev system on Windows at the moment, so I cannot really investigate further...