Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141687 | Dec 27,2018 02:34 PM UTC | Nov 25,2019 09:17 AM UTC | Xamarin.Forms | 3 |
![]() |
Tags: SfRotator |
Hey,
I am using Prism with Xamarin Forms with all the
packages up to date. I am using SfRotator, SfNavigationDrawer etc. in my
project but my issue is with the SfRotator. The images in the rotator
are not being displayed. I have tried using the control which was
not displaying any images. I moved to FFImageLoading which works outside
the SfRotator but not inside. Also, if i put a inside the , or if i use a CachedImageFastRenderer, it throws a NullReferenceException
Following are the code snippets:
public class MainPageViewModel : ViewModelBase
{
private List imageCollection;
public List ImageCollection
{
get { return imageCollection; }
set { SetProperty(ref imageCollection, value); }
}
public MainPageViewModel(INavigationService navigationService)
: base(navigationService)
{
Title = "Main Page";
ImageCollection = new List();
ImageCollection.Add(new OfferSection ("offer1.jpg", "1" ));
ImageCollection.Add(new OfferSection ("offer2.jpg", "2" ));
ImageCollection.Add(new OfferSection ("offer3.png", "3" ));
}
OfferSection.cs
public class OfferSection
{
public string Image { get; set; }
public string OfferId { get; set; }
public OfferSection(string image, string id )
{
Image = image;
OfferId = id;
}
Thanks in advance. Waiting for a prompt response
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.