IDocumentFormatProvider exporter = new XamlFormatProvider(); |
MemoryStream output = new MemoryStream(); |
exporter.Export(this.editor.Document, output); |
StreamReader stream = new StreamReader(output); |
return stream.ReadToEnd(); |
I want to store xaml in database, and the best way is to store it with RIA in mssql Text field (i think).