Show image with a URL pointing to an .SVG file

Lloyd Sheen 1,261 Reputation points

I get the link from some JSON and all image links are .svg links. I have tried about 5 of the "google search" solutions but none of them show the file, this happens on both Android and Windows desktop.

I have tried the ImageResourceConverter from the community toolkit but that did not work (shows nothing) as well. Is there a working solution to this problem?

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,143 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 58,011 Reputation points Microsoft Vendor


    This issue was filed on the MAUI github repo, you can track on this issue:Load an SVG from web URL · Issue #10050 · dotnet/maui · GitHub

    I find a workaround that you can use <webview> to display this SVG file from the URL.

    <WebView WidthRequest="50" HeightRequest="50" Source="">

    Best Regards,

    Leon Lu

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful