WpfSvgImage 1.0.4

dotnet add package WpfSvgImage --version 1.0.4
                    
NuGet\Install-Package WpfSvgImage -Version 1.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WpfSvgImage" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WpfSvgImage" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="WpfSvgImage" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WpfSvgImage --version 1.0.4
                    
#r "nuget: WpfSvgImage, 1.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WpfSvgImage@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WpfSvgImage&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=WpfSvgImage&version=1.0.4
                    
Install as a Cake Tool

WpfSvgImage

WpfSvgImage is a lightweight .NET 8 library that provides a WPF Image control capable of displaying SVG images. It enables easy integration of SVG graphics into WPF applications, supporting loading from files, streams, and application resources.

Features

  • WPF Image-derived control for SVG rendering
  • Load SVGs from file paths, streams, or resource URIs
  • Dependency property support for XAML data binding
  • Simple API for programmatic SVG image creation
  • Functions to change colors of an SVG image at runtime. See usage in sample app

Installation

Using Nuget: Download and install the published nuget package through Visual Studio. https://www.nuget.org/packages/WpfSvgImage

From source: Add the WpfSvgImage project to your solution or reference the compiled DLL in your WPF application targeting .NET 8 or later.

Usage

<Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:svg="clr-namespace:WpfSvgImage;assembly=WpfSvgImage" mc:Ignorable="d" Title="MainWindow" Height="600" Width="900"> <Grid> <svg:SvgImage SvgSourceUri="pack://application:,,,/Resources/icon.svg" Width="150" Height="150" Stretch="Uniform" /> </Grid> </Window>

XAML

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 78 7/11/2025
1.0.3 136 7/1/2025
1.0.2 143 6/17/2025
1.0.1 141 5/29/2025