Reputation: 25
I try to bind Image Url to image button
<ImageButton
android:id="@+id/activity_image"
android:clickable="true"
android:layout_width="48dp"
android:layout_height="48dp"
android:padding="4dp"
android:layout_alignParentLeft="true"
local:MvxBind="ImageUrl Type, Converter = Activity" />
But his does not work. If I change ImageButton to Mvx.MvxImageVIew, it will work. I also tried Mvx.MvxImageButton (If this exists), it show error.
I want to know if there is way to bind image of a imagebutton
Upvotes: 1
Views: 2570
Reputation: 66882
MvvmCross can only bind existing C# Properties.
MvxImageView has an ImageUrl property - ImageButton doesn't.
To get the functionality you require:
Upvotes: 1