question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SVG as Button Image Source in XAML

See original GitHub issue

Description

Is it possible to add an svg to the image source of a XAML button?

Basic Information

  • Platform: All

Reproduction Link / Code

<!-- Home --> <Button Clicked="" Grid.Row="0" Grid.Column="0" InputTransparent="True" Image="FFImageLoading SVG" Style="" Text="home"> </Button>

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
daniel-luberdacommented, Mar 23, 2018

@jean-sl Unluckily, Xamarin.Forms.Button only supports FileImageSource :< - custom renderers are needed. It would be really nice to add it to Xamarin.FFImageLoading.Forms package.

1reaction
candidodmvcommented, May 30, 2018

@jean-sl I’m with the same need and i did a implementation based on this another plugin https://github.com/jsmarcus/Iconize

As you can see on above link, there are custom renders implementations for each platform, basically what you need to do is ajust to use with the @daniel-luberda plugin.

good luck

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I use SVG image format use as WPF image source
You would have to use a vector based image processing application to convert the SVG to XAML. Generally, the XAML obtained from the...
Read more >
SvgImageSource Class (Windows.UI.Xaml.Media.Imaging)
Provides a source object for properties that use a Scalable Vector Graphics (SVG) source. You can define a SvgImageSource by using a Uniform...
Read more >
SVG Images | WPF Controls
Specify the SVG image's absolute path and assign it to a URI value. Pass the URI to the WpfSvgRenderer.CreateImageSource method. Assign the method...
Read more >
SVG extension Image does not work on ImageButton/Button
Description When I created a ImageButton or Button, set Source/ImageSource property with a svg extension like below: The button would show ...
Read more >
SVG in WPF - michael.gr
where mySvgImage somehow stands for a vector image that has somehow been obtained from an SVG file. The solution must not involve any ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found