Hi,
I have a combobox with some items that need to be disabled. I implemented this with an ItemContainerStyleSelector which will check the item for a certain property and then enables/disables it accordingly. This works like a charm.
Because the combobox can contain 1000+ items (and is quite slow in that case), I also implemented Virtualization for this combobox. This improves performance significantly.
However, enabling Virtualization breaks my ItemContainerStyleSelector. It works fine for the initially visible items, but when I start scrolling the styles of those first items just seem to be repeated for everything that comes next.
Debugging reveals that SelectStyle() is indeed being called for the first few items only, and never again afterwards.
Tia
Sodi
I have a combobox with some items that need to be disabled. I implemented this with an ItemContainerStyleSelector which will check the item for a certain property and then enables/disables it accordingly. This works like a charm.
Because the combobox can contain 1000+ items (and is quite slow in that case), I also implemented Virtualization for this combobox. This improves performance significantly.
However, enabling Virtualization breaks my ItemContainerStyleSelector. It works fine for the initially visible items, but when I start scrolling the styles of those first items just seem to be repeated for everything that comes next.
Debugging reveals that SelectStyle() is indeed being called for the first few items only, and never again afterwards.
Tia
Sodi