ExtZGholson
Topic Author
Posts: 22
Joined: 12 Mar 2021, 01:24

How to get ComboBox to wrap to top when scrolling down on bottom item

03 Nov 2021, 22:16

Hello,

I was searching in the SDK and forums today to find a simple way to have a combo box scroll back to the first item in a list if the player tried to scroll down again when on the last element in the list. I couldn't seem to find a simple property for this. Is there one?

Additionally, I wanted to scroll to the selected item when opening an dropdown. I was looking to utilize the `ScrollIntoView` function in XAML, but I couldn't seem to find a solution for that.

Any help would be appreciated on both of these matters.

Thank you,
Zane
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: How to get list box to wrap to top when scrolling down on bottom item

04 Nov 2021, 12:09

You mean when moving the focus whithin the ComboBox options using the arrow keys or a gamepad?
In WPF you can set the directional navigation on the ComboBox to cycle:
<ComboBox ItemsSource="{Binding Options}" KeyboardNavigation.DirectionalNavigation="Cycle"/>
Unfortunately I verified this is not working in Noesis for ComboBox, could you please report it in our bugtracker?

Regarding the selected item, it should automatically be focused and scrolled into view when you open the dropdown. It is working for me if I try the following xamltoy:

 
ExtZGholson
Topic Author
Posts: 22
Joined: 12 Mar 2021, 01:24

Re: How to get ComboBox to wrap to top when scrolling down on bottom item

04 Nov 2021, 16:49

Thank you, the bug has been posted. ID #0002177
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: How to get ComboBox to wrap to top when scrolling down on bottom item

08 Nov 2021, 17:55

Thanks for the report, we already fix this for next release.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 64 guests