Click here to Skip to main content
15,914,820 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on wpf application.I have a canvas on form and creating some points , user can drag any node and can save its state. I m using xamlwriter.write to save the current position but when i load it back using xamlreader.load any button on canvas are not working also any node is not dragable anymore . I have also used inline button event handler but its not working.Any solution needed
Posted

1 solution

Hi, follow MVVM architecture in your application, organize your entities as classes and use binding to bind objects to the UI.

To Save and retrieve, instead of saving the UI, just save the objects using serialization. You can retrieve those objects by deserialization.

Study about the followings,
1. MVVM architecture
2. Object Serialization and DeSerialization
3. DataBinding in WPF
4. ObservableCollections
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900