Posted 7 years ago
by Eric Ouellet
-
Developper,
Institut de recherche d'Hydro-Québec
Version: 17.2.0661
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