[BUG] SVGImage inside Button does not show up
Describe the bug When placing an SVGImage inside a Button, the SVG does not show up, unless we put explicitly Width and Height on the SVGImage.
To Reproduce Steps to reproduce the behavior:
- In a XAML, put an SVGImage without Width and Height information and assess it works and follows what is expected regarding its SizeType.
- Put the SVGImage inside a Button, and see that the image does not show up inside the button.
- Put Width and Height on the SVGImage, and see that the image is shown inside the button.
Expected behavior The SVGImage should take the size as allowed by the Button, without the need to define its Width and Height.
Screenshots Step 1:
Step 2:
Step 3:
Note that settings the property SizeType to SizeToContent makes it work, yet it does not with any other value:
(I am personally interested in using ViewBoxToSizeNoStretch and it does not work with this value.)
I'm currently not actively using or working on this library, so you need to look for the issue yourself or hope someone fixes it. I've you look after it and create a pull req, I'll look to merge.
No problem, I'm going to have a look at it.
try to set width and height to SVGImage