The State Persistence service was designed to save and load the
State collection of a WorkItem. The Composite Application Library does not directly support the concept of a WorkItem and does not provide any out-of-the-box functionality to save the application’s state.
However if you are interested on using the
State collection class and the State Persistence service of CAB, you can copy their implementation from the CAB source code and register an implementation of the
IStatePersistenceService interface (like the StreamStatePersistenceService class) as a service in your container. Then you can use the service to
save and load your State collection.
Perhaps you may find useful the following articles:
Composite Application Guidance for CAB Developers: Document that helps
you to map CAB concepts to CAL concepts. You may want to look at this documentation if you are considering a new WPF project and are familiar with CAB concepts, or are moving a CAB application to the Composite Application Library.
Migration from CAB: Section in the
CompositeWPF Knowledge Base that includes articles/questions about migration scenarios.
Please, let me know if it helps.