Is there a smart way to bind a Collection<string>
that contains the URLs of images to be shown in a FlipView
?
Or do I have to provide the images in a Collection<Image>
?
Is there a smart way to bind a Collection<string>
that contains the URLs of images to be shown in a FlipView
?
Or do I have to provide the images in a Collection<Image>
?
I know this answer is rather late, but you can also bind to a collection of images. The best way to achieve this is to use an observable collection of bitmaps rather than a collection. In your view model create a property that returns an observable collection of bitmaps
In your xaml, you can define your flipview like this
Note: Depending on how you want to create your bitmap Images, you have a file stream to set the source of the BitmapImage
You can use URLs binding those to
Source
attribute of anImage
inside anItemTemplate
:An example of displaying images from Bing in a FlipView.