OPEN SOURCE · WINDOWS · MIT

SVG, naturally
at home in WPF.

From a single icon to an animated illustration. Bring scalable artwork into your app with a native WPF control and a Drawing-based renderer.

dotnet add package DotNetProjects.SVGImage

This site describes the current source, including unreleased additions. See the changelog for published package versions.

Layered SVG artwork: a patterned panel, a cut-out green ring and an orange orb connected by a curved path.
VECTOR ART. NATIVE DRAWING.
ONE CONTROL. NINE TARGETS..NET Framework 4.0–4.8.NET Core 3.1.NET 6 / 7 / 8 for Windows

KNOW WHAT YOU CAN BUILD

A capable renderer.
A clear support story.

Paths and paint. Layout and reuse. Styling and motion. Find the supported pieces, their scope, and the details that matter for your SVGs.

Read the full support reference
Geometry & composition
Paths, basic shapes, masks, clip paths, symbols, use elements and nested viewports.
Paint & effects
Gradients, patterns, grayscale, color overrides, turbulence, displacement, lighting, image inputs and backdrop composition.
Type & style
Text paths, styled spans, CSS selectors, specificity, custom properties and color functions.
Native motion
SMIL transforms and motion paths, CSS keyframes, easing, repeats, seeking and explicit click-start events.

FROM SVG FILE TO WPF CONTROL

Fits right into your XAML.

Load a local SVG or work directly with a WPF Drawing. Keep your artwork scalable, override its colors, or enable supported animation.

Installation & first steps
MainWindow.xamlWPF
<Window
  xmlns:svg="https://github.com/dotnetprojects/SVGImage">

<svg:SVGImage UriSource="Assets/illustration.svg" UseAnimations="True" SizeType="ViewBoxToSizeNoStretch" />

</Window>

THE PROJECT IS MOVING

A lot has changed.

Explore the changelog

A broader SVG toolkit.

Diffuse/specular lighting, image inputs and backdrop composition join text paths, nested viewports, patterns, motion paths and richer CSS. Plus safer path parsing and reference-image regression coverage.

↗

Masks, grayscale, and native motion.

SVG masking, WPF-clock animation, CSS sprite sheets and symbol viewport fixes, alongside gradient color and button-sizing corrections.

↗
9target frameworks built
321selected external SVG checks
14animation examples checked
How we verify support

BUILT IN THE OPEN

Small library. Plenty to explore.