Hi,
I have simple code below. although it works fine on android, It doesnt display anything on uwp. I added a small testapp where you can reproduce the problem.
public MainPage()
{
InitializeComponent();
getRotator();
}
private void getRotator()
{
SfRotator rotator = new SfRotator()
{
NavigationStripMode = NavigationStripMode.Dots,
NavigationDelay = 2000,
NavigationDirection = NavigationDirection.Horizontal,
NavigationStripPosition = NavigationStripPosition.Bottom,
EnableAutoPlay = true,
EnableLooping = true,
EnableSwiping = true,
Margin = new Thickness(30, 10),
VerticalOptions = LayoutOptions.Start,
HorizontalOptions = LayoutOptions.Start,
HeightRequest = 300,
WidthRequest = 300
};
var cachedImage = new Image()
{
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center,
WidthRequest = 300,
HeightRequest = 300,
Source = "imgNotAvailable.png"
};
SfRotatorItem rotatorItem = new SfRotatorItem();
rotatorItem.ItemContent = cachedImage;
rotator.DataSource.Add(rotatorItem);
this.Content = rotator;
}
thanks,
Emil
Attachment:
TestApp_193f2fea.7z