Gif file is not Loading the Xamarin forms

Vasanthakumar M 251 Reputation points
2021-04-21T06:49:48.757+00:00

Hi Techie,
Gif is not loading in the xamarin forms. Any idea Techie?
89813-image.png

Developer technologies .NET Xamarin
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-04-21T08:38:00.13+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    You can use FFImageLoading to achieve it.

    https://github.com/luberda-molinet/FFImageLoading/wiki/Xamarin.Forms-API

    Please install following nuget packages. Then Use above link to do some preparation.

    89883-image.png

    if you’re using iOS or UWP:

       FFImageLoading.Forms.Platform.CachedImageRenderer.Init();  
          
    

    or if you’re using Android:

       FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true);  
    

    Then you can use this plugin in forms directly.

       <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"  
                    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:ffimageloading="clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms"  
                    x:Class="App91.Page1">  
           <ContentPage.Content>  
               <StackLayout>  
                   <ffimageloading:SvgCachedImage  HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Aspect="AspectFill" x:Name="imageWave" Source="ssss222.gif" Margin="0"/>  
         
               </StackLayout>  
           </ContentPage.Content>  
       </ContentPage>  
    

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.