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

Image with AspectFit in ScrollView problem

$
0
0

Hello,

I want to show image with AspectFit and my main aim is to show the image with HorizontalOptions="FillAndExpand" which cover the whole width of phone's screen and the height of image will be automatically adjusted by aspect ratio. But the problem is that when the height space is not enough, the height of image is squeezed and the width of image is also squeezed. That's no problem because the image need to stay at the same aspect ratio.
So the problem is height space is not enough, then I add a vertical ScrollView to wrap the image, but the problem still remains the same. The image is squeezed to smaller one.

Help~~~


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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