How to display gif image in Xamarin form?

10,392

FFImageLoading.Svg.Forms supports gif images. I'm having no problem displaying the gif using FFImageLoading.

<ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"  x:Class="MyApp.AnimationView" 
         xmlns:ffimageloading="clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms">

    <ffimageloading:SvgCachedImage HeightRequest="30" HorizontalOptions="FillAndExpand" VerticalOptions="Center" Aspect="AspectFill" x:Name="imageWave" Source="Wave.gif" Margin="0"/>

</ContentView>

Let me know if you need more information.

Share:
10,392
Huu Bao Nguyen
Author by

Huu Bao Nguyen

#Flutter, Dart, Xamarin.Forms, C#, .NET, GraphQL

Updated on June 04, 2022

Comments

  • Huu Bao Nguyen
    Huu Bao Nguyen almost 2 years

    I have a gif image and I want to display it on screen app. I use library FFImageLoading to load gif image, but I can't display it in xamarin.forms 3.1. I don't know whether other library support load gif image? Please help me! Thanks!

  • Huu Bao Nguyen
    Huu Bao Nguyen over 5 years
    Thanks you! I add wrong path "Source" image... I fixed it.
  • Sreejith Sree
    Sreejith Sree about 4 years
    In UWP Gif is not working for me, working fine on android and ios. Is there anything more added to UWP?