Xamarin.forms 沙马林形成了一个新的地层

Xamarin.forms 沙马林形成了一个新的地层,xamarin.forms,ffimageloading,Xamarin.forms,Ffimageloading,我有一个UI设计,如下图所示。我正在使用FFImageLoading插件和角点转换,但我无法从图像的顶部到底部剪切图像。我该怎么做 我正在尝试以下代码,但它不起作用 var imgProd = new CachedImage { Source = temp.imgSource, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand, Margin = 0, Do

我有一个UI设计,如下图所示。我正在使用FFImageLoading插件和角点转换,但我无法从图像的顶部到底部剪切图像。我该怎么做

我正在尝试以下代码,但它不起作用

var imgProd = new CachedImage { Source = temp.imgSource, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.FillAndExpand, Margin = 0, DownsampleHeight = vm.featureStackHeight, DownsampleToViewSize = true, Aspect = Aspect.Fill};
    imgProd.Transformations.Add(new CornersTransformation { CornersTransformType = CornerTransformType.TopLeftCut | ,TopLeftCornerSize=50 });

以下是xaml中的工作:

<ffimageloading:CachedImage Source ="{Binding ImageFile}"
    <ffimageloading:CachedImage.Transformations>
        <fftransformations:CornersTransformation 
             CornersTransformType="TopLeftCut" 
             TopLeftCornerSize="50" />
        </ffimageloading:CachedImage.Transformations>
</ffimageloading:CachedImage>