Long delay before displaying items (Combobox) #2724
-
Hi, I have a Combobox that is loaded with about 1300 items.
` I noticed that with a "standard" combobox (in a "non wpf" program) the combobox doesn't have any delay. Roberto |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks Roberto, this sounds like a data virtualization issue. Looking over the code it appears that this library does not have virtualization enabled by default (this is a bug that should get fixed). <ComboBox
materialDesign:HintAssist.Hint="Virtualisation"
MinWidth="72"
ItemsSource="{Binding LongListToTestComboVirtualization}"
SelectedValue="{Binding SelectedValueOne}">
<ComboBox.SelectedItem>
<Binding
Path="SelectedValueOne"
Mode="TwoWay"
UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<demoAppDomain:NotEmptyValidationRule
ValidatesOnTargetUpdated="True" />
</Binding.ValidationRules>
</Binding>
</ComboBox.SelectedItem>
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
</ComboBox> |
Beta Was this translation helpful? Give feedback.
Thanks Roberto, this sounds like a data virtualization issue. Looking over the code it appears that this library does not have virtualization enabled by default (this is a bug that should get fixed).
In the meantime you should be able to follow the virtualized ComboBoxes from the demo app to enabled virtualization.