简体   繁体   English

WPF Avalondock将布局保存到下次启动

[英]WPF Avalondock save layout to next start-up

I am using Avalondock tool and I think it is a great tool of using. 我正在使用Avalondock工具,并且我认为这是一个很棒的工具。 It includes a lot of good features and easy to use. 它包括许多良好的功能并且易于使用。

I have used Avalondock a lot and i have implemented in my whole application, but one thing that would be insane to have is to remember the layout to next startup. 我已经使用Avalondock了很多,并且已经在整个应用程序中实现了,但是要记住的一件事就是记住下次启动时的布局。

I have a userconfig that saves other configuration of the application, so i know how that work, but I need to know in details how to save and load the layout of floated panels. 我有一个userconfig可以保存应用程序的其他配置,所以我知道它是如何工作的,但是我需要详细了解如何保存和加载浮动面板的布局。

I have read some other posts that I thought I could figure it out, but it became too hard, unfortunately. 我看过其他一些我认为可以解决的帖子,但不幸的是,它变得太难了。

I hope some sweet soul could give me an explanation about how this works and what I have to do step by step! 我希望有个甜蜜的灵魂可以让我解释一下它是如何工作的,以及我必须一步一步做的事情!

Good day 美好的一天

Best regard Tobias 最好的托比亚斯

You should be able to serialize the layout using 您应该能够使用以下方式序列化布局

XmlLayoutSerializer XmlLayoutSerializer

in

Xceed.Wpf.AvalonDock.Layout.Serialization Xceed.Wpf.AvalonDock.Layout.Serialization

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM