If I understood your scenario correctly, you have a bound the treeview control. If that is so, the persistence framework would not save the ItemsSource property. This is the default behavior, as we do not want to recreate your business objects, as their state might not be the same as when restored. For example - private setters, nested classes with no parameterless constructors, readonly collections cannot be recreated. What settings are you trying to save?
The persistence framework works with any UIElements and their properties
. It is likely to have an unexpected result when the saved objects have different structure than the ones when restoring. However, it is possible to provide a custom serialization, which can keep track of the saved and loaded objects. A similar approach is used when using the persistence framework with the RadGridView control and its Columns. The columns are not directly serialized, but only their metadata, When loading, they are matched against the autogenerated columns of the GridView and the settings are restored. You can see this example in our online samples here
Please let me know if you have questions on this matter.
All the best,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>