File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
src/Uno.UI/UI/Xaml/Controls/ComboBox Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
using System ;
10
10
using System . Collections . Generic ;
11
+ using System . Collections . Specialized ;
11
12
using DirectUI ;
12
13
using Microsoft . UI . Xaml . Automation . Peers ;
13
14
using Microsoft . UI . Xaml . Controls . Primitives ;
@@ -904,16 +905,19 @@ private void UpdateSelectionBoxHighlighted()
904
905
IsSelectionBoxHighlighted = value ;
905
906
}
906
907
907
- private void OnOpen ( )
908
- {
909
-
910
908
#if HAS_UNO
911
- // Force a refresh of the popup's ItemPresenter
909
+ private protected override void UpdateItems ( NotifyCollectionChangedEventArgs args )
910
+ {
911
+ // With virtualization, the base.UpdateItems won't handle the updates
912
+ // (because ShouldItemsControlManageChildren is false), so we make an
913
+ // explicit call to Refresh here instead.
914
+ base . UpdateItems ( args ) ;
912
915
Refresh ( ) ;
913
-
914
- RestoreSelectedItem ( ) ;
916
+ }
915
917
#endif
916
918
919
+ private void OnOpen ( )
920
+ {
917
921
// TODO Uno: BackButton support
918
922
//if (DXamlCore.Current.BackButtonSupported)
919
923
//{
You can’t perform that action at this time.
0 commit comments