How to save layout #245
-
after drag or change size,how can i save layout to xml file?like:Root.Save("/layout/layout1.xml"); when i close app and reopen, i can recover the layout,like:Root.Load("/layout/layout1.xml"); |
Beta Was this translation helpful? Give feedback.
Answered by
wieslawsoltes
Jun 29, 2022
Replies: 2 comments
Answer selected by
yaoyulian
-
Or just serialize/deserialize https://github.com/wieslawsoltes/Core2D/blob/a35d00a9de8dfe7de8dd006b8f1751d6759f3eb5/src/Core2D.Desktop/App.axaml.cs#L196 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
Dock/src/Dock.Serializer/DockSerializer.cs
Line 12 in 54c8d45