Good evening,
I recently implemented the control SfRotator and I had some issues. The first one is when we fill our rotator with some data using SfRotatorItem, it looks like we can't wrap anything into a StackLayout. The item is well loaded, but nothing is displayed even if the documentation said that ItemContent should accept a view. Here is my code :
[CODE]
if (e.PropertyName == nameof(context.News))
{
var rotator = new SfRotator() { BackgroundColor = Color.Transparent, HeightRequest = 200};
foreach (var item in context.News)
{
var stack = new StackLayout() { Children = { new Label() { Text = "Test"} } };
var rotatorItem = new SfRotatorItem() { ItemContent = stack };
rotator.DataSource.Add(rotatorItem);
}
RotatorLayout.Children.Add(rotator);
[/CODE]
I thank you in advance for your answer and I wish you a good evening !
Best regards,