We are trying to program with VS 2013 and WPF a WPF window designer application . In this application controls are created and placed on a Canvas at runtime; including the setting of the properties and bindings. After the completion of such a dynamic WPF window we want to serialize the Canvas and it's child controls to a XML file. For this we are using the XamlWriter like that:We are trying to program with VS 2013 and WPF a