Good Day Admin
i have a Rotator defined like this
<StackLayout>
<rotator:SfRotator BackgroundColor="Transparent"
DotsBorderColor="Transparent"
UnselectedDotColor="{DynamicResource Gray-200}"
SelectedDotColor="{DynamicResource PrimaryColor}"
SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
NavigationStripMode="Dots"
NavigationStripPosition="Bottom"
DotPlacement="Default"
HeightRequest="480"
x:Name="PhotoGallery"
Margin="8, 0">
<rotator:SfRotator.ItemTemplate>
<DataTemplate>
<StackLayout Spacing="0">
<controls:CustomShadowFrame x:Name="Rotator" BackgroundColor="{DynamicResource Gray-White}"
BorderColor="{DynamicResource Gray-White}" BorderWidth="1"
CornerRadius="4" HasShadow="True" Margin="4" Padding="0">
<Grid RowSpacing="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ffimageloading:CachedImage Aspect="AspectFill"
CacheDuration="14" HeightRequest="525"
BackgroundColor="{DynamicResource Gray-White}"
DownsampleUseDipUnits="True" RetryCount="5" RetryDelay="5"
LoadingPlaceholder="hourglass_2.gif" ErrorPlaceholder="sorry_failed.png"
DownsampleToViewSize="true"
Source="{Binding IMAGE_VIDEO_URL}" >
</ffimageloading:CachedImage>
<!--Travel place-->
<Label Grid.Row="1"
Margin="16,16,16,4"
TextColor="{DynamicResource Gray-900}"
FontSize="16"
FontFamily="{DynamicResource Montserrat-SemiBold}"
LineHeight="{OnPlatform Android=1.5, Default=-1}" />
<!--Details of travel place-->
<Label Grid.Row="2"
Margin="16,0,16,16"
TextColor="{DynamicResource Gray-700}"
FontSize="12"
FontFamily="{DynamicResource Montserrat-Medium}"
LineBreakMode="TailTruncation"
MaxLines="2"
LineHeight="{OnPlatform Android=1.2, Default=-1}" />
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Path=BindingContext.TravelPlacesCommand, Source={x:Reference Rotator}}" CommandParameter="{Binding .}" />
</Grid.GestureRecognizers>
</Grid>
</controls:CustomShadowFrame>
</StackLayout>
</DataTemplate>
</rotator:SfRotator.ItemTemplate>
</rotator:SfRotator>
</StackLayout>
and i am binding the data like this
private void GetUserphophotos()
{
List<USER_GALLERY_PHOTO_VIDEOS_Model> lstimages = new List<USER_GALLERY_PHOTO_VIDEOS_Model>();
try
{
USER_GALLERY_PHOTO_VIDEOS_Model model = new USER_GALLERY_PHOTO_VIDEOS_Model();
model.IMAGE_VIDEO_URL = "https://www.trovadating.com/User_Gallery/User_id_4097/u_di_4097_20210130001932955.png";
lstimages.Add(model);
model = new USER_GALLERY_PHOTO_VIDEOS_Model();
model.IMAGE_VIDEO_URL = "https://www.trovadating.com/User_Gallery/User_id_4097/u_di_4097_20210130085631004.png";
lstimages.Add(model);
model = new USER_GALLERY_PHOTO_VIDEOS_Model();
model.IMAGE_VIDEO_URL = "https://www.trovadating.com/User_Gallery/User_id_4097/u_di_4097_20210130085807893.png";
lstimages.Add(model);
Device.BeginInvokeOnMainThread(() =>
{
PhotoGallery.ItemsSource = lstimages;
});
}
catch (Exception ex)
{
throw ex;
}
}
But still the Rotaror does not show images. you can take the links as examples , they have images and sizes are very small . i have attached a small Project as well
Thanks
Attachment:
Rotator_74b72442.rar