<navigationdrawer:SfNavigationDrawer.DrawerHeaderView>
<rotator:SfRotator ItemsSource="{Binding ImageCollection}"
NavigationDirection="Horizontal"
NavigationStripMode="Dots"
BackgroundColor="#ececec">
<rotator:SfRotator.ItemTemplate>
<DataTemplate>
<Image Source="{Binding Image}"/>
</DataTemplate>
</rotator:SfRotator.ItemTemplate>
</rotator:SfRotator>
</navigationdrawer:SfNavigationDrawer.DrawerHeaderView> |
private List<SfRotatorItem> imageCollection = new List<SfRotatorItem>();
public List<SfRotatorItem> ImageCollection
{
get { return imageCollection; }
set { imageCollection = value; }
}
public RotatorViewModel()
{
ImageCollection.Add(new SfRotatorItem() { Image = "movie1.png" });
ImageCollection.Add(new SfRotatorItem() { Image = "movie2.png" });
ImageCollection.Add(new SfRotatorItem() { Image = "movie3.png" });
} |
<navigationdrawer:SfNavigationDrawer.DrawerHeaderView>
<rotator:SfRotator HeightRequest="200"
ItemsSource="{Binding ImageCollection}"
NavigationDirection="Horizontal"
NavigationStripMode="Dots"
BackgroundColor="#ececec">
</rotator:SfRotator>
</navigationdrawer:SfNavigationDrawer.DrawerHeaderView> |