All projects

SVG asset conversion

SvgToXaml

Move vector assets into native XAML once—or regenerate them on every build.

StatusMaintained
TierMaintained
DomainGraphics
Repositorywieslawsoltes/SvgToXaml

A desktop and build-time converter that turns SVG artwork into Avalonia XAML drawings, geometries, and resource dictionaries.

SvgToXaml converts SVG artwork into Avalonia-native XAML either interactively or as a deterministic MSBuild asset step. The model, converter, desktop and Web hosts, and build task expose resource reuse, geometry transforms, and compatibility controls.

01

Desktop conversion workflow

02

MSBuild asset generation

03

Combined resource dictionaries

04

Geometry, resource, and compatibility options

Where it fits.

  • Avalonia applications with vector icon pipelines
  • Design-system and asset-build maintainers
  • Developers converting SVG into inspectable XAML resources
Avalonia XAML

Drawing output

MSBuild

Integrated task

Resource dictionaries

Combined output

Complex SVG effects

Configurable handling

Real output,
not a mockup.

SvgToXaml desktop converter
The desktop converter previews SVG input and the resulting Avalonia XAML drawing.

Clear layers.
Replaceable seams.

01

Model

SVG geometry, paint, resources, transforms, and containers become a conversion model.

02

Converter

Mapping rules emit Avalonia drawing and geometry structures.

03

Hosts

Desktop and browser tools support interactive inspection and export.

04

Build

MSBuild generates individual AXAML files or combined dictionaries.

2 modesinteractive and build
2 outputsindividual or dictionary
10+ settingsconversion policy
LiveGitHub metadata

One repository.
Multiple serious systems.

Explore the focused capabilities, their package boundaries, architecture, installation, and smallest useful example.

From package
to first frame.

Choose the package workflow used by your repository, then start from the smallest working example. Replace VERSION with the current stable or prerelease version shown on NuGet.

01 · Install
Terminal
dotnet add package SvgToXamlConverter
dotnet add package SvgToXaml.Build
02 · Use · xml
MainWindow.axaml
<ItemGroup>
<SvgFiles Include="Assets/**/*.svg"
OutputFile="Assets/Icons.axaml" />
</ItemGroup>

Start focused.
Compose as needed.

The repository is the source of truth.

Use the current documentation and samples, inspect changes, report issues, or support continued open-source maintenance.

RibbonControl

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…