Hello,
i am trying to implement the carousel, but i am getting this exception :
Exception thrown: 'System.NullReferenceException' in Syncfusion.SfCarousel.XForms.UWP.dll
Exception thrown: 'System.NullReferenceException' in System.Private.CoreLib.ni.dll
all i did is adding the references to the projects, and then this :
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="SmartDirectory.Views.FeedBackPage" BackgroundColor="Yellow"
xmlns:syncfusion="clr-namespace:Syncfusion.SfCarousel.XForms;assembly=Syncfusion.SfCarousel.XForms">
<ContentPage.Content>
<syncfusion:SfCarousel x:Name="Carousel" BackgroundColor="CadetBlue"/>
</ContentPage.Content>
</ContentPage>
the cs file of this view:
SfCarousel carousel = new SfCarousel() { ItemWidth = 170, ItemHeight = 250 };
ObservableCollection<SfCarouselItem> collectionOfItems = new ObservableCollection<SfCarouselItem>();
collectionOfItems.Add(new SfCarouselItem() { ImageName = "1.png" });
collectionOfItems.Add(new SfCarouselItem() { ImageName = "2.png" });
collectionOfItems.Add(new SfCarouselItem() { ImageName = "3.png" });
collectionOfItems.Add(new SfCarouselItem() { ImageName = "4.png" });
collectionOfItems.Add(new SfCarouselItem() { ImageName = "5.png" });
collectionOfItems.Add(new SfCarouselItem() { ImageName = "6.png" });
carousel.DataSource = collectionOfItems;
this.Content = carousel;