I have this combobox which is bound to a list of customers with around 5k entries
<ComboBox ItemsSource="{Binding Customers}" Margin="0 0 0 18"
DisplayMemberPath="DisplayMember"
SelectedValuePath="Id"
SelectedValue="{Binding CustomerId,Mode=OneWay}"
>
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
</ComboBox>
I changed to virtualization and this helped in getting the list faster but when I added SelectedValue to bind to my viewmodel it got very very slow to load.
Is there any way to overcome this problem ?
Regards