SVG as Button Image Source in XAML
See original GitHub issueDescription
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:
- Created 6 years ago
- Reactions:6
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jean-sl Unluckily,
Xamarin.Forms.Button
only supportsFileImageSource
:< - custom renderers are needed. It would be really nice to add it toXamarin.FFImageLoading.Forms
package.@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