Xamarin - AspectFill but anchor to the top
SSB
111
Reputation points
Hi,
I have an image - it needs to have a fixed height and the width to be full width of the container. Currently i have the following code which is working OK, however, the image seems to be anchored in the center. I need to anchor it to the top. So it should just chop the bottom off instead of the top and the bottom.
Right now it is doing this:
What I need it to do is align to the top:
Any thoughts on how I can get this to show like that?
My current code is
<yummy:PancakeView CornerRadius="20" Margin="10,0" >
<Grid BackgroundColor="White" >
<ffimageloading:CachedImage Source="{Binding PictureSource, Mode=TwoWay }"
HorizontalOptions="FillAndExpand"
VerticalOptions="StartAndExpand"
Aspect="AspectFill"
HeightRequest="525"
Margin="0,0,0,0"
>
</ffimageloading:CachedImage>
</Grid>
</yummy:PancakeView>