Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

FFimageLoading SVG

$
0
0

Hi all and specially @DanielL ,

I have problem with SVG, so i have created CacheImage on Xaml like this :

<ffimageloading:CachedImage x:Name="mapimg" Grid.Row="5" Grid.Column="3" Grid.ColumnSpan="2"/>

And i have put source like this :

`using FFImageLoading.Svg.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xamarin.Forms;

namespace Mu
{
public partial class CustomModuleCell : ViewCell
{
public CustomModuleCell()
{
InitializeComponent();

        mapimg.Source = SvgImageSource.FromResource("Mu.Resources.Drawables.LocalisationOver.svg");

    }
}`

but it's not works and visual studio offers me this :

So i think it have a problem but i don't know what. If i put an ImageSource with png file it's works but no with SvgImageSource with svg image.

And my svg is an Embedded Resource.

So i don't know what it's not works, if any one can help me, i accept .

Thanks in advance.


Viewing all articles
Browse latest Browse all 77050


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>