Skip to content

Commit

Permalink
Implementations of IXmlSerializable.ReadXml are required to read the …
Browse files Browse the repository at this point in the history
…entire element from beginning to end, including all of its contents. Prior to this change it would not read the end element from the reader. This would cause issues if the LayoutRoot was being serialized as part of a parent object's xml serialization as the XmlReader would be left on an unexpected element.

#88
  • Loading branch information
Dirkster99 committed Oct 31, 2019
1 parent 5746161 commit ffbe014
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,9 @@ public void ReadXml( XmlReader reader )
{
this.Hidden.Add( ( LayoutAnchorable )hiddenObject );
}

//Read the closing end element of LayoutRoot
reader.ReadEndElement();
}

public void WriteXml( XmlWriter writer )
Expand Down

0 comments on commit ffbe014

Please sign in to comment.