FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

How can I use SVG icons for Tabbed pages?

Open Schenky opened this issue 4 years ago • 11 comments

Hi,

I' trying to use FFImageLoader to display SVG icons on tabbed pages: If I use a PNG image, it's working fine. <TabbedPage> <ContentPage Title="Test" IconImageSource="icon.png"/> </TabbedPage> But when I try with an SVG image, I get an XAML design time error. <ContentPage Title="Test"> <ContentPage.IconImageSource> <ffSvg:SvgCachedImage Source="test.svg"> </ContentPage.IconImageSource> </ContentPage> Error: Property 'IconImageSource' does not support values of type 'SvgCachedImage'.

I also tried adding from code (in the ContentPage xaml.cs file) . No error, but still not working. IconImageSource = new FFImageLoading.Svg.Forms.SvgImageSource("folder_24px.svg", 20, 20, true);

What am I doing wrong? How should I do it?

I'm using Xamarin Forms 4.4.0.991640 anf FFImageLoading 2.4.11.982

Schenky avatar Feb 12 '20 12:02 Schenky

i normally use the png format, xamarin can fill up the color when selected

artur309 avatar Feb 19 '20 21:02 artur309

I'm trying to avoid to upload the images in multiple resolutions, and also I need the same icon in several other places (where svg image display works), so it would be ideal to have a single scalable resource. Is it considered eventually in future developements?

Schenky avatar Feb 20 '20 08:02 Schenky

Same problem and same needs for me. If someone has a solution...

galactose310 avatar Mar 19 '20 23:03 galactose310

Same problem and same needs for me. If someone has a solution...

I tried use the svg to but i converted all my svg to png and it worked. Even the lines of icons are highlited with the selected color.

I didnt use the FFImageLoading

artur309 avatar Mar 20 '20 11:03 artur309

Somebody knows how solve this problem???

superbeller avatar Apr 03 '20 11:04 superbeller

Somebody knows how solve this problem???

Its seems no

artur309 avatar Apr 23 '20 14:04 artur309

it is not possible till today but this is i believe more related to xamarin.forms team.

EmilAlipiev avatar Jul 25 '20 00:07 EmilAlipiev

it is not possible till today but this is i believe more related to xamarin.forms team.

i didn't use the FF i simply convert SVG TO PNG and it worked, and i have was possible to change the line colors

artur309 avatar Jul 25 '20 22:07 artur309

Any update on this? Anyone got it working?

Edgaras91 avatar Nov 11 '20 09:11 Edgaras91

damn is still a issue? :/

artur309 avatar Nov 11 '20 12:11 artur309

I know it's been a while, did anyone ever figure this out? Trying to use SVG in Xamarin Flyouts.

winkmichael avatar Sep 14 '21 23:09 winkmichael