Xamarin Forms Image fill width with proper aspect

后端 未结 11 2214
我寻月下人不归
我寻月下人不归 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 08:48

    Try inclosing image inside of a grid like:

    
        
    
    

    Sometimes when I have an image that is not resizing properly, inclosing it inside a grid solves the problem.

提交回复
热议问题