Exemplo n.º 1
0
        protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
        {
            var carousel = container.AsCardsView();

            return(carousel.Items[0] == item
                                           ? RedTemplate
                                           : GreenTemplate);
        }