Xaml
<Window x:Class="WpfAppShowSvg.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:svgc="http://sharpvectors.codeplex.com/svgc/"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<svgc:SvgViewbox x:Name="my1" Width="180" Height="120"/>
</Grid>
</Window>
using System;
using System.IO;
using System.Windows;
namespace WpfAppShowSvg
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
try
{
string filePath = @"D:\car.svg";
using (StreamReader stream = new StreamReader(filePath))
{
my1.StreamSource = stream.BaseStream;
}
}
catch (Exception e)
{
}
}
}
}