Inline SVG in XAML

SvgML

Compose vector artwork as XAML elements instead of opaque asset files.

Explore source
Parent systemSvg.Skia
StatusPreview
Modules3
RepositorySvg.Skia/SvgML.Avalonia

SvgML packages let applications author SVG elements directly in Avalonia, Uno Platform, and .NET MAUI XAML while rendering through Svg.Skia.

  1. 01

    Inline SVG element trees

  2. 02

    Avalonia, Uno, and MAUI packages

  3. 03

    Bindable XAML properties

  4. 04

    Svg.Skia rendering backend

From intent
to working system.

01

Markup

SVG elements and attributes are expressed through XAML objects.

02

Bind

Normal framework properties update vector content.

03

Model

The object tree maps into a shared SVG representation.

04

Render

Svg.Skia produces the final drawing.

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 SvgML.Avalonia --prerelease
02 · Use · xml
MainWindow.axaml
<svgml:Svg Width="120" Height="120" ViewBox="0 0 100 100">
<svgml:Circle Cx="50" Cy="50" R="42" Fill="#8ea2ff" />
<svgml:Path Data="M30,52 L45,67 L72,35" Stroke="White" />
</svgml:Svg>

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.

Svg.Skia

Search everything.

Loading the index…

move open esc close

Preparing metadata and full-text search…