void Initialize(XamlXmlWriter xamlXmlWriter)
 {
     this.xamlXmlWriter = xamlXmlWriter;
     settings           = xamlXmlWriter.Settings; // This will clone, only want to do this once
     meSettings         = meSettings ?? new XamlMarkupExtensionWriterSettings();
     currentState       = Start.State;
     sb     = new StringBuilder();
     nodes  = new Stack <Node>();
     failed = false;
 }
 public XamlMarkupExtensionWriter(XamlXmlWriter xamlXmlWriter, XamlMarkupExtensionWriterSettings meSettings)
 {
     this.meSettings = meSettings;
     Initialize(xamlXmlWriter);
 }