DevExpress-Examples/winforms-dasard-save-restore-dasard-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This example demonstrates how to manage dasard state to save and restore user selections.

screenshot

When the form closes, the DasardViewer.GetDasardState obtains a dasard state object. It is serialized to XML and added to the XElement object stored in the CustomProperties collection. Subsequently the dasard with the dasard state data is saved to a file.

When the application starts, the DasardViewer control loads the dasard and the DasardState object is deserialized in the GetStateFromCustomProperty method.

The dasard state is restored using the GetStateFromCustomProperty method in the DasardViewer.SetInitialDasardState event handler.

You can click the Reset Dasard State button to apply the dasard state created at runtime.

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates how to manage dasard state to save and restore user selections.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 7