locked
Svg image using FFImageloader RRS feed

  • Question

  • User236903 posted

    Hello, i am using the library above for displaying an svg image. Documentation code is the below :smile:

        <?xml version="1.0" encoding="UTF-8"?>
    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="FFImageLoading.Forms.Sample.SvgSamplePage"
            xmlns:ffimageloadingsvg="clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms">
    
        <ContentPage.Content>
            <ffimageloadingsvg:SvgCachedImage WidthRequest="200" HeightRequest="200" Source="sample.svg"/>  
    
            <!-- SECOND APPROACH (PCL EmbeddedResource): -->
            <ffimageloadingsvg:SvgCachedImage WidthRequest="200" HeightRequest="200" Source="resource://FFImageLoading.Forms.Sample.Resources.sample.svg"/>  
    
        </ContentPage.Content>
    </ContentPage>
    

    My problem is that ffimageloadingsvg:SvgCachedImage doesnt exist. Propably SvgCachedImage class has been changed. Is there anyone who had the same issue?

    Wednesday, April 29, 2020 5:26 PM

Answers

  • User369979 posted

    We need to install the FFImageLoading.Svg.Forms package if you want to consume ffimageloadingsvg: SvgCachedImage could be successfully used after adding it to your Forms project. Here is my sample.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, April 30, 2020 7:31 AM

All replies

  • User369979 posted

    We need to install the FFImageLoading.Svg.Forms package if you want to consume ffimageloadingsvg: SvgCachedImage could be successfully used after adding it to your Forms project. Here is my sample.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, April 30, 2020 7:31 AM
  • User236903 posted

    Thank you LandLu

    Thursday, April 30, 2020 2:40 PM