I have a problem with a third party control that I'm trying to fix or work around. (ElementControl from http://fluidkit.codeplex.com/)
That control is a subclass of ItemsControl and overrides PrepareContainerForItemOverride to create a WPF3D wrapper for each item. (The goal is to show a nice, animated 3D gallery of the items.)
This works correctly the firsttime the ItemsSource is set. However, if the ItemsSource is later replaced with a different list of items, PrepareContainerForItemOverride is apparently not called again. This leads to crashes since
the control expects these WPF3D wrappers to exist.
How can I ensure that PrepareContainerForItemOverride is called for these new items?
Should the control be changed to use a different approach for creatin the WPF3D wrappers? (PrepareContainerForItemOverride seems to be the only approach that allows using ItemTemplates.)
Any other advice?
View Complete Post