How to get the xaml result without writing a file. #202
-
I´m trying to convert svg to xaml using azure functions. Currently:
How do I read the xaml result when saveXaml and saveZaml are set to false? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@MrInventor There are several converters to handle different situations, all deriving from 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. |
Beta Was this translation helpful? Give feedback.
@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.