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

Image in stacklayout, full width

$
0
0

I'm trying to scale an image (either up or down) which is in a stacklayout so that it's width is the full width of the screen. The height should be whatever height is required to maintain its aspect ratio.

What xaml markup is required to do this?

<StackLayout>
    <Label Text="Title"></Label>
    <Image Source="http://xxx"></Image>
</StackLayout>

Viewing all articles
Browse latest Browse all 91519

Trending Articles



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