我正在使用CircleImage。
xmlns:ic="clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions"
在我的XAML文件中。
我想要做的是插入:
<ic:CircleImage
x:Name="userProfileImage"
HeightRequest="50"
WidthRequest="50"
Aspect="AspectFill"
Source="{Binding post.uploader.userProfile.userThumbnail}"
/>
这个图片位于按钮属性下方。
但是如果我这样做(在下方):
<Button Clicked="OnUserInfoClicked">
<Button.Image>
<ic:CircleImage
x:Name="userProfileImage"
HeightRequest="50"
WidthRequest="50"
Aspect="AspectFill"
Source="{Binding post.uploader.userProfile.userThumbnail}"
/>
</Button.Image>
</Button>
然后,我遇到了这个错误。
No property, bindable property, or event found for 'image'
我做错了什么?该如何修复?