Question: Can UWP ComboBox max item display limit be overridden? #7503
Replies: 6 comments
-
I think there is not anything exposed that would allow you to fix this.. @MikeHillberg maybe you know some secrets? |
Beta Was this translation helpful? Give feedback.
-
Moving forward is there any chance Microsoft will be updating the UWP ComboBox to allow display of all items? |
Beta Was this translation helpful? Give feedback.
-
ComboBox is not a control shipped in Winui2, meaning changing it would require an OS update or Winui3. We could examine this once WinUI3 ships. |
Beta Was this translation helpful? Give feedback.
-
I would highly recommend this update. |
Beta Was this translation helpful? Give feedback.
-
I didn't do the testing, maybe you can try re-template the ComboBox and set MaxDropDownHeight to a larger number. Currently it's hard coded with 504 |
Beta Was this translation helpful? Give feedback.
-
In generic.xaml (v10.0.18362.0) I do see a hardcoded MaxDropDownHeight = "504" for the ComboBox. |
Beta Was this translation helpful? Give feedback.
-
I'm using the UWP ComboBox (VS 2019). There is apparently a built in max display limit of approximately 9 items depending on item height. So for example, I have a ComboBox with 12 items, when initially opened (with a mouse click) it displays 9 of the items even though there is plenty of real estate to display all 12 items.
If ComboBox is opened on a touch screen with a finger touch it displays ~6 items, even though there is plenty of real estate to display all 12 items.
Notes:
Is there a way to override this behavior and just have all items display when ComboBox opened?
Beta Was this translation helpful? Give feedback.
All reactions