serializer.LayoutSerializationCallback += (s, e) =>
{
var item = e.Model;
if (string.IsNullOrEmpty(item.ContentId)) return;
if (!RecreatePanelContent(item.ContentId, out FrameworkElement element)) return;
item.Content = element; // this line will make everything disppear, but I what to restore panel content here.
};
Hi everyone! I'm trying to implement layout restore in my app, but I got some troubles. I found similar issue #397, but it's not helping with this.
here is xml content
this layout should be like this
here is serialization callback
here is xaml part