The issue I've encountered was while attempting to use the XamlDesignerSerializationManager(XMLWriter) to save the XAML definition of my modified form so that I could restore it later. I am able to make this work when I save reference to my Canvas that I've added my controls to but when attempting to save the XAML when referencing the Grid containing the AvalonDockManager my application abends with a stack overflow exception. I understand what causes this and have to tried to resolve it by removing any binding with child elements that reference higher parent elements - thinking this is forcing recursive calls. I have not been able to resolve this at all. I am not terribly concerned though since I am able to save my Canvas, containing all of my newly created controls, and restore it later.
↧