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

FFImageLoading does not display images properly

$
0
0

I'm not exactly sure what I'm doing wrong here, but can you shed some light? @FabienMolinet @DanielL

       public App()
        {
            var contentPage = new ContentPage
            {
                Content = new ListView
                {
                    ItemsSource = // Set source,
                    ItemTemplate = new DataTemplate(typeof(CustomViewCell)),

                }
            };

            MainPage = contentPage;
        }

    public class CustomViewCell : ViewCell
    {
        public CustomViewCell()
        {
            var cachedImage = new CachedImage();
            cachedImage.SetBinding(CachedImage.SourceProperty, "Source");
            View = cachedImage;
        }
    }

I have initialized FFImageLoading in MainActivity.cs

When the page loads, only one row displays an image. All other rows currently on the screen lack their image. If I scroll slowly, images will begin to load for the new rows. If I scroll fast, some rows will have their images while others won't. I'm using version 2.0.5. All of my images are embedded resource files and they are very small in size.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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