SfCarousel's MovePrevious and MoveNext methods not work on UWP and give NullReferenceException and SelectedIndex is always 0, but it works fine on Android.
View :
<StackLayout>
<syncfusion:SfCarousel
x:Name="MyCarousel"
ItemsSource="{Binding Images}"
ViewMode="Linear">
<syncfusion:SfCarousel.ItemTemplate>
<DataTemplate>
<Grid x:DataType="x:String">
<Image Source="{Binding}"/>
</Grid>
</DataTemplate>
</syncfusion:SfCarousel.ItemTemplate>
</syncfusion:SfCarousel>
<Button Text="Previous" Clicked="Previous_OnClicked"/>
<Button Text="Next" Clicked="Next_OnClicked"/>
</StackLayout>
Code Behind :
private void Previous_OnClicked(object sender, EventArgs e)
{
MyCarousel.MovePrevious();
}
private void Next_OnClicked(object sender, EventArgs e)
{
MyCarousel.MoveNext();
// index is always = 0 on UWP
var index = MyCarousel.SelectedIndex;
}