title: CarouselView with a different template for each slide in Xamarin forms
body: <p>I need to make a CarouselView in Xamarin forms where every slide has a specific template.
  Currently I have done so:</p>
  
  <p><strong>XAML</strong>:</p>
  
  <pre><code>xmlns:control="clr-namespace:Xamarin.Forms;assembly=Xamarin.Forms.CarouselView"
  .......
  
   &lt;ContentView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"&gt;
            &lt;control:CarouselView x:Name="carouselView"&gt;
              &lt;control:CarouselView.ItemTemplate&gt;
                &lt;DataTemplate&gt;
                  &lt;Label Text="{Binding Testo}" /&gt;
                &lt;/DataTemplate&gt;
              &lt;/control:CarouselView.ItemTemplate&gt;
            &lt;/control:CarouselView&gt;
          &lt;/ContentView&gt;
  </code></pre>
  
  <p><strong>CODEBEHIND</strong> :</p>
  
  <pre><code>List&lt;CustomCell&gt; myCarousel = new List&lt;CustomCell&gt;();
  myCarousel.Add(new CustomCell { Testo = "ciao" });
  myCarousel.Add(new CustomCell { Testo = "ciao due" });
  
  carouselView.ItemsSource = myCarousel;
  </code></pre>
  
  <p><strong>CustomCell</strong>:</p>
  
  <pre><code>public class CustomCell
  {
      public string Testo { get; set; }
  }
  </code></pre>
  
  <p>All this works, my problem is that I'd have a different template for each slide, for example, a grid different graphically each slide, this is because I have to display data differently graphically speaking.
  Can you recommend a solution? Thank you</p>