<rotator:SfRotator BackgroundColor="Transparent"
DotsBorderColor="Transparent"
UnselectedDotColor="{DynamicResource Gray-200}"
SelectedDotColor="{DynamicResource PrimaryColor}"
ItemTapped="rotator_ItemTapped"
SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
NavigationStripMode="Dots"
NavigationStripPosition="Bottom"
DotPlacement="Default"
HeightRequest="525"
x:Name="rotator"
Margin="8, 0">
<rotator:SfRotator.ItemTemplate>
<DataTemplate>
<StackLayout Spacing="0">
<controls1:CustomShadowFrame x:Name="Rotator" BackgroundColor="{DynamicResource Gray-White}"
BorderColor="{DynamicResource Gray-White}" BorderWidth="1"
CornerRadius="4" HasShadow="True" Margin="4" Padding="0">
<ffimageloading:CachedImage Aspect="AspectFill"
CacheDuration="14" HeightRequest="525"
BackgroundColor="{DynamicResource Gray-White}"
DownsampleUseDipUnits="True" RetryCount="5" RetryDelay="5"
LoadingPlaceholder="loadinghourglass.gif" ErrorPlaceholder="no_pofile_pic.png"
DownsampleToViewSize="true"
Source="{Binding IMAGE_VIDEO_URL}" >
</ffimageloading:CachedImage>
</controls1:CustomShadowFrame>
</StackLayout>
</DataTemplate>
</rotator:SfRotator.ItemTemplate>
</rotator:SfRotator>
|
XAML.cs: private void rotator_ItemTapped(object sender, EventArgs e) { var itemSelected = viewModel.ImageCollection[rotator.SelectedIndex] as RotatorModel; if (itemSelected != null) { m_selected_image = itemSelected.Image; } } |