Forum Xamarin Xamarin.Forms

Carousel View in Xamarin.Forms iOS

OzmertDenizOzmertDeniz USMember
edited August 2016 in Xamarin.Forms

Hi, 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.


    <cv:CarouselView ItemsSource="{Binding Path=BindingContext.Hotel.HotelImages, Source={x:Reference HotelDetailPage}}" HeightRequest="200">
                <StackLayout HeightRequest="200">
                  <Grid HeightRequest="200">
                    <Image Aspect="AspectFill" Source="{Binding FullPath}"/>

and here is my get json service code;

                     for (int j = 0; j < imageCount; j++)
                                    HotelImageModel hotelImage = new HotelImageModel();

                                    hotelImage.FullPath = json["data"][i]["HotelImages"][j]["FullPath"].Value;


Note: I got help at this example:

Sign In or Register to comment.