- ExtZGholson
- Posts: 22
- Joined:
How to get ComboBox to wrap to top when scrolling down on bottom item
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
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
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: How to get list box to wrap to top when scrolling down on bottom item
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:
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:
In WPF you can set the directional navigation on the ComboBox to cycle:
Code: Select all
<ComboBox ItemsSource="{Binding Options}" KeyboardNavigation.DirectionalNavigation="Cycle"/>
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
- Posts: 22
- Joined:
Re: How to get ComboBox to wrap to top when scrolling down on bottom item
Thank you, the bug has been posted. ID #0002177
-
sfernandez
Site Admin
- Posts: 2983
- Joined:
Re: How to get ComboBox to wrap to top when scrolling down on bottom item
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