Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Async ImageSource in SetBinding

$
0
0

Hi,
I have a ListView that is bind to an ObservableCollection. Each item in the list has property "Path" with a url for an image.
I've already set the bindings through the DataTemplate. Is there a way to call the DataTemplate binding async?

listQueue = new ListView ();
listQueue.SetBinding (ListView.ItemsSourceProperty, "list");
DataTemplate listTemplate = new DataTemplate (typeof(ImageCell));
listTemplate.SetBinding (ImageCell.ImageSourceProperty, "Path");
listTemplate.SetBinding (ImageCell.TextProperty, "Title");
listTemplate.SetBinding (ImageCell.DetailProperty, "SubTitle");

listQueue.ItemTemplate = listTemplate;

In WPF I can use the async word with binding.

Thanks in advance
Leonardo


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>