Skip to content

How to get the xaml result without writing a file. #202

Answered by paulushub
MrInventor asked this question in Q&A
Discussion options

You must be logged in to vote

@MrInventor There are several converters to handle different situations, all deriving from SvgConverter, which you can also extend to create a customized conversions. Here are some...
StreamSvgConverter - will convert and save static image to stream
FileSvgConverter - will convert and same XAML to file
FileSvgReader - will convert to DrawingGroup and optionally save to file.

FileSvgReader is the most generic converter, so use it to convert to DrawingGroup and save that to the form you want in XAML using either the XmlXamlWriter or the framework XamlWriter. It is the same process used by the FileSvgReader to save to file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MrInventor
Comment options

Answer selected by MrInventor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants