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 keyboard navigation does not follow currently selected item. #61

Open CasperH2O opened 1 month ago

CasperH2O commented 1 month ago

Describe the bug As discussed with @bober95 and @Valkirie in #52. Made a new ticket as requested by @NotYoojun

To Reproduce Steps to reproduce the behavior:

  1. Navigate a "long" dropdown which has more elements then can be shown on the screen right away using the keyboard, either with the tab key or up and down arrows.

Expected behavior I'm honestly not sure what would be best or easiest, but perhaps simply keeping the current selection/focus in view and scrolling automatically?

Screenshots 333068498-e5199f4a-35e5-4da6-9b33-07398a644246.webm

Desktop (please complete the following information):

Bober95 commented 1 month ago

I will also add that the same problem occurs in DataGrid, ScrollViewerEx is also used there

Bober95 commented 3 days ago

Hi, I've been working on this problem for a while and I don't know exactly why it doesn't work, but removing this line solves the problem: ScrollInfo = new ScrollInfoAdapter(ScrollInfo); in file: ScrollViewerEx.cs