Asked by:
How to make universal app combobox bring selected item into view when opened

Question
-
The default behavior of a Combobox in a windows universal app appears to be defaulting to the top of the list when the Combobox is in full screen view. The ListView has a neat ability of being able to scroll the selected item into view with a method called ScrollIntoView. That ability doesn't appear to be part of the combobox. Is there a way to replicate this behavior?Thursday, March 26, 2015 11:01 PM
All replies
-
Hi sflanders,
Yes, the Combobox does not have the method as same as the ScrollIntoView method in ListView. Since if we set the SelectedIndex for the Combobox, then it will show the selected item in the Combobox, so the SelectedItem is already in our view. Besides, if we click the Combobox, the selected item will have a highlight color in the full screen view. But for the ListView, especially when there are a lot of data, we need to scroll to the SelectedItem manually, if we do not use the ScrollIntoView method.
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Edited by Amy PengMicrosoft employee, Moderator Friday, March 27, 2015 10:09 AM
Friday, March 27, 2015 10:06 AMModerator -
That's is not the behavior i see with the combo box control for windows phone. If you have a long list it uses a full screen view. The problem is it doesn't scroll to the selected index automatically. So if you have a long list it becomes a pain to work with. If you create a blank universal app and drop a combo box on it. Just bind a list with 50 or more items and select something that would be out of view. The item will be selected but when you click the combo box you have to scroll a lot to see the highlighted item.Friday, March 27, 2015 10:41 PM
-
That's is not the behavior i see with the combo box control for windows phone. If you have a long list it uses a full screen view. The problem is it doesn't scroll to the selected index automatically. So if you have a long list it becomes a pain to work with. If you create a blank universal app and drop a combo box on it. Just bind a list with 50 or more items and select something that would be out of view. The item will be selected but when you click the combo box you have to scroll a lot to see the highlighted item.
Hi sflanders,
Yes, I can reproduce this issue in my side with a long list of ComBoboxItem. In my mind maybe we can reoder the ComBobox according the selected ComBoboxItem, in this way the highlighted item will always be in the top.
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Edited by Amy PengMicrosoft employee, Moderator Thursday, April 9, 2015 9:19 AM
Thursday, April 9, 2015 9:18 AMModerator -
If reordering just means put the selected on top that doesn't really help. Lets say for instance you have a combobox that has numbers 1 to 100 for selecting what you want your house temperature to be. Someone is typically making granular changes so they may change the selected value from 70 to 73. If the selected item is just put on the top you still have to scroll a lot to find 73, but now if you want to change it back the numbers are moved around. Plus now you have to keep rebuilding the list after selection to move items that are now unselected back in place.Friday, April 10, 2015 12:09 AM