-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AvalonDock.LayoutRoot doesn't know how to deserialize... #111
Comments
Hi, thanks for your feedback. Just to clearify your change request. Are you suggesting to change the 2nd if statement in private object ReadElement(XmlReader reader) as shown below:
Please let me know if this should work for you. Thanx Dirk |
Hi, I cannot directly verify your exakt problem unless you give me a Layout that I can use with a test application in the repository (eg. Save a sample layout with MLibTest). Nethertheless, I've tried to triangulate your problem and found a possible fix in this branch: Would you please test this branch and let me know whether this works for you? It is important that you test more than the error case because I received errors (when loading a layout) about the PreviousContainerId not being resolvable and I am not sure whether thats because:
|
Fix #111 with AvalonDock.LayoutRoot doesn't know how to deserialize.
@Dirkster99 Sorry for not replying earlier. Your fix works, thanks a lot!! ❤️ |
It was @scdmitryvodich fix that worked I was not able to pin this one (sadly) - so I only released it but thanks for the good feedback :-) |
When trying to deserialize a layout, the following exception is thrown:
Layout XML:
Looking at the stack on first-chance exception, the
xmlReader
is at EOF (NodeType=None
) so the following method should check that condition:AvalonDock/source/Components/AvalonDock/Layout/LayoutRoot.cs
Line 1034 in 140986a
Note the same code worked just fine in the WPF Toolkit version.
The text was updated successfully, but these errors were encountered: