This question is locked. New answers and comments are not allowed.
Telerik Team,
I have reviewed several posts in regards to inline Templates, SL4 bugs, etc. However, I believe my circumstance is a bit different. I am currently using SL 5. Perhaps you could help shed some light on the problem.
I have a Telerik ItemsControl which retrieves its DataTemplates via the Telerik DataTemplateSelector. I have a simple DataTemplate I created that is loaded into the ItemsControl only once. Keep in mind, I am following the MVVM pattern. Therefore, the View that contains the ItemsControl is bound to a ViewModel that exposes the Collection of items bound to the ItemsControl. Fairly simple.
Here is my problem; when I remove the View from my Shell and the Visual Tree the destructor is never called on my ViewModel when that simple DataTemplate contains a Telerik Editor (perhaps other controls as well, however, I have not tested those scenarios). When I remove the Telerik Editor and replace it with a native Silverlight Control, everything works as expected.
Build: 2012.2.607.1050
Any ideas?
Thanks in advance
PD
I have reviewed several posts in regards to inline Templates, SL4 bugs, etc. However, I believe my circumstance is a bit different. I am currently using SL 5. Perhaps you could help shed some light on the problem.
I have a Telerik ItemsControl which retrieves its DataTemplates via the Telerik DataTemplateSelector. I have a simple DataTemplate I created that is loaded into the ItemsControl only once. Keep in mind, I am following the MVVM pattern. Therefore, the View that contains the ItemsControl is bound to a ViewModel that exposes the Collection of items bound to the ItemsControl. Fairly simple.
Here is my problem; when I remove the View from my Shell and the Visual Tree the destructor is never called on my ViewModel when that simple DataTemplate contains a Telerik Editor (perhaps other controls as well, however, I have not tested those scenarios). When I remove the Telerik Editor and replace it with a native Silverlight Control, everything works as expected.
Build: 2012.2.607.1050
Any ideas?
Thanks in advance
PD