locked
CarouselView does not show images RRS feed

  • Question

  • User394552 posted

    Hi I have two Models and a ViewModels for articles and posts from DB . One of them like this

    and i use BackgroundImage in CarouselView like this

    And there is no problem with CarouselView and it shows images . But with another Model that likes this

    and use like this

    CarouselView does not show anythings . What's the problem ?

    Saturday, July 4, 2020 6:58 AM

Answers

  • User392598 posted

    In your case you should bind your carousel to Home.Post.images and ffcachedimage bind like {Binding .}

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, July 6, 2020 12:29 PM
  • User394552 posted

    @ilia_misjura said: In your case you should bind your carousel to Home.Post.images and ffcachedimage bind like {Binding .}

    Thanks to @ilia_misjura and @LandLu I solved my problem like this

    ItemsSource="{Binding images}" because CarouselView is in CollectionView with ItemsSource="{Binding Home.Post}"

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, July 6, 2020 12:42 PM

All replies

  • User394552 posted

    Any one can help ?

    Monday, July 6, 2020 3:49 AM
  • User369979 posted

    What does Home.Post represent? Did it indicate the FPostModel list? Please notice that an image should not be bound to a list of image sources. Will it work if you change it to {Binding Images[0]}?

    Monday, July 6, 2020 7:32 AM
  • User394552 posted

    @LandLu said: What does Home.Post represent? Did it indicate the FPostModel list? Please notice that an image should not be bound to a list of image sources. Will it work if you change it to {Binding Images[0]}?

    Hi Home.post is

    I want to have an Image carousel like Instagram multiple images for 1 post

    Monday, July 6, 2020 11:35 AM
  • User392598 posted

    In your case you should bind your carousel to Home.Post.images and ffcachedimage bind like {Binding .}

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, July 6, 2020 12:29 PM
  • User394552 posted

    @ilia_misjura said: In your case you should bind your carousel to Home.Post.images and ffcachedimage bind like {Binding .}

    Thanks to @ilia_misjura and @LandLu I solved my problem like this

    ItemsSource="{Binding images}" because CarouselView is in CollectionView with ItemsSource="{Binding Home.Post}"

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, July 6, 2020 12:42 PM