CanvasSvgDocumentLoadFromXml Method |
Namespace: Microsoft.Graphics.Canvas.Svg
public static CanvasSvgDocument LoadFromXml( ICanvasResourceCreator resourceCreator, string xmlString )
This API is only available when running on Windows 10 build 15063 (Creators Update) or greater.
The passed-in string must be a valid SVG document. Currently, Win2D supports a subset of SVG 1.1. For more details, see Direct2D's page about SVG support. Content which is valid SVG but is unsupported by Win2D will not cause a failure; it will be ignored.