Hello,
I'm experiencing an issue with the ComboBox where, if a drop-down has enough items to enable scrolling, the scroll bar appears on the bottom of the menu when it is first expanded. The SelectedIndex, when set, is highlighted properly, but the scroll bar still appears on the very bottom.
This only happens when I use the ItemsSource property. If I specify the ComboBoxItems in XAML, the scroll bar is fine. If I use Items.Add, the scroll bar works fine but, obviously, my data binding behavior is affected. How can I force the scroll bar to the top of the menu programmatically?
I've been struggling with this all day. Any help would be much appreciated.
Thanks in advance,
Anna
I'm experiencing an issue with the ComboBox where, if a drop-down has enough items to enable scrolling, the scroll bar appears on the bottom of the menu when it is first expanded. The SelectedIndex, when set, is highlighted properly, but the scroll bar still appears on the very bottom.
This only happens when I use the ItemsSource property. If I specify the ComboBoxItems in XAML, the scroll bar is fine. If I use Items.Add, the scroll bar works fine but, obviously, my data binding behavior is affected. How can I force the scroll bar to the top of the menu programmatically?
I've been struggling with this all day. Any help would be much appreciated.
Thanks in advance,
Anna