iNKORE-NET / UI.WPF.Modern

Modern (Fluent 2) styles and controls for your WPF applications
https://docs.inkore.net/ui-wpf-modern
GNU Lesser General Public License v2.1
326 stars 29 forks source link

Combobox bug #52

Closed Bober95 closed 1 month ago

Bober95 commented 3 months ago

In the case of a large list of elements, if it is not selected in 1 position, it will always move to the bottom. If there are few items, it will be done in step 1. The video shows when the number of elements is much larger

https://www.youtube.com/shorts/4FB7YnwX6As

NotYoojun commented 3 months ago

Hi there

This bug has been existing for a long time. Unfortunately, I haven't found a way to fix it yet. 🥴

Bober95 commented 1 month ago

The problem is the use of the value - ForceUseSmoothScroll in ScrollViewerEx. After turning it off, this effect no longer occurs.

How to get to this value from Combobox in wpf?

Once I determine why exactly this is happening, I will let you know

Valkirie commented 1 month ago

The problem is the use of the value - ForceUseSmoothScroll in ScrollViewerEx. After turning it off, this effect no longer occurs.

How to get to this value from Combobox in wpf?

Once I determine why exactly this is happening, I will let you know

Interested in hearing from you here once "fixed". Ideally we'd be able to only change the ComboBox own scrollviewer.

NotYoojun commented 1 month ago

Hi there, I'll dig into this when I get home. Thanks for ur ideas!

NotYoojun commented 1 month ago

Please try the latest commit, I applied your idea there. Could you please build the latest version and check if it still exists.

Bober95 commented 1 month ago

Hello, this problem has been fixed, but there is still one error - when we change using the arrow keys on the keyboard, the list does not follow the currently selected item. I tried to find a solution to this myself, unfortunately to no avail at the moment.

CasperH2O commented 1 month ago

@NotYoojun @Bober95 if I may, is this similar to the problem we are having? It looks like this when using "Tab" to navigate through the elements in the drop down.

329247983-4b7bd0a6-391e-4e14-a000-6154f197a41a.webm

More details here: https://github.com/Valkirie/HandheldCompanion/issues/1048

Bober95 commented 1 month ago

if I may, is this similar to the problem we are having?

Yes, that's it. The drop-down list does not track the selected item

NotYoojun commented 1 month ago

Hey, does this exist before my changes?

Btw I'm afraid I need to close this issue as completed since the first question is fixed.

Could you please open a new issue for this problem? Thks

Bober95 commented 1 month ago

Hey, does this exist before my changes?

Yes