I have using SharpVector library in my project (WPF Core) to showing SVG images and this is the my reference " < PackageReference Include="SharpVectors.Reloaded" Version="1.8.1" / > "
The problem is happening if i use the svg image in grid with column definations. SVG image is render and showing while desing time with column defination but if i go to debug and runtime, it doesn't render and show. Everyting works normal without column defination. I put the xaml codes and screenshots below
With Grid.ColumnDefinitions
<Grid>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50*" />
<RowDefinition Height="350*" />
<RowDefinition Height="100*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50*" />
<ColumnDefinition Width="700*" />
<ColumnDefinition Width="50*" />
</Grid.ColumnDefinitions>
<Button Style="{DynamicResource ResourceKey=TransparentButton}"
Grid.Column="0"
Grid.Row="0"
Grid.RowSpan="3"
Background="Transparent" >
<Image Source="{svgc:SvgImage /CustomControls/images/left-arrow.svg}" Margin="15" RenderTransformOrigin="0.5,0.5"/>
</Button>
</Grid>
</Grid>
Without Grid.ColumnDefinitions
<Grid>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50*" />
<RowDefinition Height="350*" />
<RowDefinition Height="100*" />
</Grid.RowDefinitions>
<Button Style="{DynamicResource ResourceKey=TransparentButton}"
Grid.Column="0"
Grid.Row="0"
Grid.RowSpan="3"
Background="Transparent" >
<Image Source="{svgc:SvgImage /CustomControls/images/left-arrow.svg}" Margin="15" RenderTransformOrigin="0.5,0.5"/>
</Button>
</Grid>
</Grid>
I have using SharpVector library in my project (WPF Core) to showing SVG images and this is the my reference " < PackageReference Include="SharpVectors.Reloaded" Version="1.8.1" / > "
The problem is happening if i use the svg image in grid with column definations. SVG image is render and showing while desing time with column defination but if i go to debug and runtime, it doesn't render and show. Everyting works normal without column defination. I put the xaml codes and screenshots below
With Grid.ColumnDefinitions
Without Grid.ColumnDefinitions
Screenshot