且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将图像绑定到URL Xamarin Forms XAML

更新时间:2021-12-25 22:04:30

因为您将 UriImageSource 绑定到 Uri 您的 ViewModel 属性必须是Uri to。

Since you are binding the UriImageSource to a Uri your ViewModel property must be a Uri to.

更改 public UriImageSource ProductImage {get;组; } public Uri ProductImage {get;组; }