title: Carousel View in Xamarin.Forms iOS
body: <p>I have a web service and I'm getting imageurl from json string. But I guess wrong binding section. There isn't show any image. Here is my code.</p>
  
  <p>Xaml:</p>
  
  <pre><code>&lt;cv:CarouselView ItemsSource="{Binding Path=BindingContext.Hotel.HotelImages, Source={x:Reference HotelDetailPage}}" HeightRequest="200"&gt;
          &lt;cv:CarouselView.ItemTemplate&gt;
            &lt;DataTemplate&gt;
              &lt;StackLayout HeightRequest="200"&gt;
                &lt;Grid HeightRequest="200"&gt;
                  &lt;Image Aspect="AspectFill" Source="{Binding FullPath}"/&gt;
                &lt;/Grid&gt;
              &lt;/StackLayout&gt;
            &lt;/DataTemplate&gt;
          &lt;/cv:CarouselView.ItemTemplate&gt;
        &lt;/cv:CarouselView&gt;
  </code></pre>
  
  <p>and here is my get json service code;</p>
  
  <pre><code>for (int j = 0; j &lt; imageCount; j++)
  {
          HotelImageModel hotelImage = new HotelImageModel();    
          hotelImage.FullPath = json["data"][i]["HotelImages"][j]["FullPath"].Value;    
          hotel.HotelImages.Add(hotelImage);
  }
  </code></pre>
  
  <p>Note: I got help at this example: <a href="https://blog.xamarin.com/flip-through-items-with-xamarin-forms-carouselview" rel="nofollow">https://blog.xamarin.com/flip-through-items-with-xamarin-forms-carouselview</a></p>