From f58e285b83ea2fc88570d5b2c8e789d97a93b784 Mon Sep 17 00:00:00 2001 From: Dmitry Vodich Date: Mon, 24 Feb 2020 13:08:44 +0300 Subject: [PATCH] Fix #111 with AvalonDock.LayoutRoot doesn't know how to deserialize. --- source/Components/AvalonDock/Layout/LayoutRoot.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Components/AvalonDock/Layout/LayoutRoot.cs b/source/Components/AvalonDock/Layout/LayoutRoot.cs index 881ec433..402cede2 100644 --- a/source/Components/AvalonDock/Layout/LayoutRoot.cs +++ b/source/Components/AvalonDock/Layout/LayoutRoot.cs @@ -816,6 +816,7 @@ private List ReadElementList(XmlReader reader, bool isFloatingWindow) { var resultList = new List(); while (reader.NodeType == XmlNodeType.Whitespace) reader.Read(); + if (reader.NodeType == XmlNodeType.EndElement) return resultList; if (reader.IsEmptyElement) {