im using circleImage
xmlns:ic="clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions"
in my xaml file.
and what i'm trying to do is inserting
<ic:CircleImage
x:Name="userProfileImage"
HeightRequest="50"
WidthRequest="50"
Aspect="AspectFill"
Source="{Binding post.uploader.userProfile.userThumbnail}"
/>
this image under the button property.
but if i do this(under)
<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>
then, i get this error.
No property, bindable property, or event found for 'image'
what am i doing wrong? and how to fix it?
To those stumbling on this in the future - If you are not required to use the
CircleImage
object, Xamarin's default buttons have circular support by making theCornerRadius
half the height of the image.You can also add a
BorderColor
andBorderRadius
to make it pop out a bit more if you need: