Svg.Skia accepts several input forms:
SKSvg supports:
Load(string path)Load(Stream stream, SvgParameters? parameters = null, Uri? baseUri = null)Load(XmlReader reader)FromSvg(string svg)The Avalonia SvgSource wrappers expose the same idea but add baseUri-aware resource resolution for XAML.
There are two supported entry points:
Load(path) with auto-detection for VectorDrawable XML.LoadVectorDrawable(...) and FromVectorDrawable(...) for explicit VectorDrawable handling.The repository includes tests that validate accepted and rejected Android attributes, element nesting, and SVG equivalence for representative cases.
Both Avalonia stacks support Css and CurrentCss overlays. This is useful for:
SvgParameters carries entity substitutions and CSS fragments when loading.
The Avalonia packages resolve:
avares:// URIs,The Skia-backed Avalonia.Svg.Skia.SvgSource also exposes EnableThrowOnMissingResource for stricter missing-resource behavior during development or testing.