Vector artwork becomes Avalonia resources

SVG Conversion Engine

Convert design-time SVG assets into native XAML that tools and applications can inspect.

Explore source
Parent systemSvgToXaml
StatusMaintained
Modules1
RepositorySvgToXaml/SvgToXaml.Converter

The converter parses SVG content into an intermediate drawing model and emits Avalonia XAML geometry, drawing, brush, transform, clip, mask, filter, and resource structures for desktop or browser workflows.

  1. 01

    Intermediate drawing and resource model

  2. 02

    Geometry, paint, transform, and container conversion

  3. 03

    Desktop and browser hosts

  4. 04

    Compatibility and cleanup options

From intent
to working system.

01

Parse

SVG elements and paint data become a structured source model.

02

Translate

Shapes, transforms, resources, clips, and effects map to XAML concepts.

03

Optimize

Compatibility and resource-reuse settings shape output.

04

Write

The converter produces standalone XAML or resource content.

Adopt this
capability.

Start with the primary module, then add the related packages only when the application needs those layers. Replace VERSION with the current NuGet version.

01 · Install
Terminal
dotnet add package SvgToXamlConverter
02 · Use · bash
Terminal
# Run the desktop converter from source.
dotnet run --project src/SvgToXaml.Desktop
# Open SVG artwork, inspect the generated drawing,
# then save the Avalonia XAML output.

Use one layer.
Compose the rest.

Read the module beside the complete system.

The implementation, samples, issues, and release notes stay in the parent repository so module details remain connected to the product architecture.

SvgToXaml

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…