Skip to content

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

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/wpf-mvvm-behaviors-currentwindowserializationbehavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 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

Does this example address your development requirements/objectives?

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •