Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Show Images Horizontally

$
0
0

I have an app, where I want to show the images horizontally. I tried it using an ImageCell, inside the stacklayout, and set it's orientation to Horizontal, but the images still show horizontally. So I tried to put horizontal scroll viewer as well, still it shows vertically.

Also I will be setting the height and width that way so that there any only 3-4 images showing at a time horizontally in a list and and new images added go in another line.

<ScrollView Orientation="Horizontal">
                    <StackLayout Orientation="Horizontal">
                        <ListView x:Name="ImageList" HorizontalOptions="Start">
                            <ListView.ItemTemplate>
                                <DataTemplate>
                                    <ImageCell x:Name="imgUploaded" ImageSource="{Binding ImagePath}" Tapped="imgUploaded_Tapped" />
                                </DataTemplate>
                            </ListView.ItemTemplate>
                        </ListView>
                    </StackLayout>
                </ScrollView>

Any help or suggestions on how to implement the same.

Thanks In Advance!!.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>