Collection view 4 images in a row

Is it possible to make a collectionview with 4 images per row?
Something like this: Example

Right now all of them are in one row:

            <CollectionView x:Name="galleryListView" ItemsSource="{Binding gallerylist}" WidthRequest="500">
                     <GridItemsLayout Orientation="Horizontal"/>
                    <StackLayout WidthRequest="100">

                        <Image Source="{Binding Image}" ></Image>

>Solution :

you need to specify how many columns per row

<GridItemsLayout Span="4" Orientation="Horizontal"/>


Leave a Reply