Skip to content

[BUG] SVGImage inside Button does not show up #106

@anslmorvan

Description

@anslmorvan

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:

  1. In a XAML, put an SVGImage without Width and Height information and assess it works and follows what is expected regarding its SizeType.
  2. Put the SVGImage inside a Button, and see that the image does not show up inside the button.
  3. 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:

Image

Image

Step 2:

Image

Image

Step 3:

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions