question

MAGICMAGIC-5864 avatar image
0 Votes"
MAGICMAGIC-5864 asked MAGICMAGIC-5864 answered

Xamarin Forms - ImageButton Source Binding Issue with CollectionView

Working on an app. I created a CollectionView to display a list. I have the Model wired to it. I created an ImageButton. Works fine with Android but the image is not displaying on iOS.

I was trying to bind the source but I receive an error:
- "BindingContext" not found on "....Models.Movies".

Any idea how to resolve? I want to pull the image from images folder. Instead it is pulling from drawable on Android. Need this to work for both iOS and Android.

Thx

119906-sample.png




dotnet-xamarin
sample.png (26.1 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

you should post model.movies

0 Votes 0 ·

Submitted below

0 Votes 0 ·
MAGICMAGIC-5864 avatar image
0 Votes"
MAGICMAGIC-5864 answered

I added properties to the Movies model and resolved it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MAGICMAGIC-5864 avatar image
0 Votes"
MAGICMAGIC-5864 answered

Here it is.

119974-modelmovies.png



modelmovies.png (17.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.