Question

Can i get back a string from the XamlWriter.Save(myBF, stream)? I need it so save the string in my database. What i have to change on the example from this answer

Était-ce utile?

La solution

You can create a StringWriter and pass that as the second parameter to XamlWriter.Save().

Then you just need to call StringWriter.ToString() to get the string.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top