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.

How can I use SVG icons for Tabbed pages?

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:7
  • Comments:11

github_iconTop GitHub Comments

3reactions
galactose310commented, Mar 19, 2020

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

3reactions
Schenkycommented, Feb 20, 2020

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin.Forms: use SVG images as icons on a TabbedPage
I want to use SVG images as icons on a TabbedPage in Xamarin.Forms for iOS. The documentation for the TabbedPage class provides the ......
Read more >
Display SVGs as TabbedPage tab icons in Xamarin.Forms
A common question that Xamarin.Forms users ask is “how the hell do I get my TabbedPage to display SVG-based tab icons?
Read more >
Xamarin.Forms - TabbedPage with vector graphic tab icons
This sample demonstrates how to display SVG files as tab icons in a Xamarin.Forms TabbedPage (navigation)
Read more >
SVG, Favicons, and All the Fun Things We Can Do With ...
Favicons are the little icons you see in your browser tab. ... One very new trick is the ability to use SVG as...
Read more >
Shell Tab Bar Setup Icons using SVG Images - YouTube
We will set up Shell Tab Bar Icons using SVG Images. We will see the problem using SVG Image as Icon. In this...
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