Forum Xamarin Xamarin.Forms

Better way to get IsVisible bindings

CrudarCrudar Member ✭✭

Hi. I have 2 images for each object in collection view. Those objects are in collection view which is grouped. I need to show one of the images based on input. My solution what I have in my mind is to create variable in the class while creating new object and than bind the IsVisible to this variable. Is there a better way how to do this ?


  • JoeMankeJoeManke USMember ✭✭✭✭✭

    Are you always showing only 1 image or the other, in the same place in the layout? If so, you could bind the Image.Source property to the boolean property using a converter.

  • CrudarCrudar Member ✭✭
    That would be one way to solve this. But I forgot to add that the images have bindings what should they do when user taps on them.
Sign In or Register to comment.