dotnetprojects / SVGImage

A SVGImage Control for WPF
http://dotnetprojects.github.io/SVGImage/
MIT License
199 stars 41 forks source link

Does not work inside buttons? #69

Closed maslewandowski closed 1 year ago

maslewandowski commented 1 year ago

I tried the following:

<Button Style="{StaticResource NumPadButton}" Command="{Binding TestCommand}" CommandParameter="Larry" >
    <svg1:SVGImage Grid.Row="0" Grid.Column="1" Source="/Resources/Images/testfile.svg" VerticalContentAlignment="Center"  HorizontalContentAlignment="Center"/>
</Button>

Also i tried to set a width, verticalalignments and so on.. After i switched from SVGImage to Image, and that works, im pretty sure, that the SVGImage does not work inside buttons.