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

Dynamic Stack layout

$
0
0

Well i have this stack layout (horizontal) and it seems to wrap my images horizontally. What i want to achieve is if one of my images does not fit in the screen then insert the images in the next row: something like this:

This is what it is currently doing:

this is what i want to achieve:

My stack layout has the current properties:

 StackLayout container = new StackLayout
            {
                VerticalOptions = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.Start,
                Orientation = StackOrientation.Horizontal,
                Padding = 20,
                //HeightRequest = 150,
                BackgroundColor = Color.Black
            };

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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