Xamarin表单:无法使用FFImageLoading库从url加载图像

Xamarin表单:无法使用FFImageLoading库从url加载图像,image,xamarin,xamarin.forms,xamarin-studio,ffimageloading,Image,Xamarin,Xamarin.forms,Xamarin Studio,Ffimageloading,我正在尝试将图像从url加载到xamarin表单应用程序中的图像视图。但我得到了一个错误,我没有得到一个修复它 我正在尝试加载图像,如下所示: ImageService.Instance .LoadFile(imageUrl) .LoadingPlaceholder("user.png") .Into(btn_profile_pic) .Source(btn_profile_pic); 我尝试仅使用

我正在尝试将图像从url加载到xamarin表单应用程序中的图像视图。但我得到了一个错误,我没有得到一个修复它

我正在尝试加载图像,如下所示:

ImageService.Instance
            .LoadFile(imageUrl)
            .LoadingPlaceholder("user.png")
            .Into(btn_profile_pic)
            .Source(btn_profile_pic);
我尝试仅使用Into和Source,但出现以下错误:

String does not contain a definition for Into and no extension method 'Into' accepting a first argument of type during could be found
Non Invocable member TaskParameter.Source cannot be used like a method
如果尝试使用Source,则会出现以下错误:

String does not contain a definition for Into and no extension method 'Into' accepting a first argument of type during could be found
Non Invocable member TaskParameter.Source cannot be used like a method

顺便说一句,profile是一个图像小部件,我想将图像从url加载到图像小部件中。

更新:

使用Xamarin表单:

XAML

正如您所看到的,没有
Into()
方法,但是您依赖于
CachedImage
类,它将为您完成大部分工作

您需要在每个应用程序项目(iOS、Android和UWP)中安装相同的表单包,并且需要使用这一行初始化渲染器

CachedImageRenderer.Init();
是关于如何使用此库的完整文档


希望这有帮助

我的问题不好,抱歉我编辑了这个问题,它是复制粘贴错误。即使添加了括号,我也会得到同样的错误。