ElinamLLC/SharpVectors

Svg not showing in .net core application

abdou31 opened this issue · 3 comments

I'm using a net core app and I'm trying to load svg icon in my application but it won't displayed in design and runtime mode .

How can I fix this?

<Page x:Class="MyApp.Page1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:svg="http://sharpvectors.codeplex.com/runtime/"
      xmlns:svgc="clr-namespace:SharpVectors.Converters;assembly=SharpVectors.Converters.Wpf">

  <Button Click="OnOpenFileClick" ToolTip="Open SVG File">
                <StackPanel Orientation="Horizontal">
                    <Image Source="{svgc:SvgImage Source=/Images/Open.svg}" Height="24" Width="24"/>
                    <TextBlock Margin="3,0,0,0" VerticalAlignment="Center">Select File</TextBlock>
                </StackPanel>
            </Button>

Libraries used :

image

@abdou31 This issue is fixed in the repository and I am working to release version 1.8.1 this week.

I'm waiting for this , thank you.

Sorry for the delay. The version 1.8.1 is now available.