Xamarin Forms Image fill width with proper aspect

后端 未结 11 2213
我寻月下人不归
我寻月下人不归 2020-12-09 08:05

Here is xaml (an image in stacklayout). Everything is logical: I set Aspect to AspectFit and HorizontalOptions to FillAndExpand. Width of image must fill the width of stackl

11条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 09:01

    heightrequest of stacklayout must be either StartAndExpand or FillAndExpand or EndAndExpand in order to automatically adjust height

提交回复
热议问题