Posted 7 years ago
by Eric Ouellet
-
Developper,
Institut de recherche d'Hydro-Québec
Version: 17.2.0661
![Avatar](https://secure.gravatar.com/avatar/bb250088e084858cb7b0cd7d31196a67.jpg?s=64&d=identicon&r=g)
Actually I do:
string xml = System.IO.File.ReadAllText(path);
var layoutSerializer = new DockSiteLayoutSerializer();
layoutSerializer.SerializationBehavior = DockSiteSerializationBehavior.ToolWindowsOnly;
layoutSerializer.LoadFromString(xml, dockSite);
Everything works but the Serializer does set the DataContext.
Is there a way to load the layout without affecting ToolWindow(s) DataContext?
Eric Ouellet