Skip to content

DevExpress-Examples/wpf-mvvm-behaviors-currentwindowserializationbehavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF MVVM Framework - Serialize/Deserialize a View's Size and State with LayoutSerializationService and CurrentWindowSerializationBehavior

The CurrentWindowSerializationBehavior allows you to serialize/deserialize settings (size and state) of the associated view (or window). The behavior uses the LayoutSerializationService to serialize/deserialize a view's settings.

To save/restore view settings, assign the CurrentWindowSerializationBehavior to the view and invoke the Serialize/Deserialize methods in the Initialized event hander.

You should define the CurrentWindowSerializationBehavior at the same hierarchical level with the LayoutSerializationService or lower.

To deserialize view settings on the application startup, use the Initialized event.

Files to Look At

Documentation

About

Use the LayoutSerializationService and CurrentWindowSerializationBehavior to serialize/deserialize a view's size and state

Topics

Resources

License

Stars

Watchers

Forks