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

Async Ready ListView

$
0
0

The Picker and ListView controls in XF are painful because they are not Async ready out of the box. The Picker control literally destroys your model by blanking out the property bound to SelectedItem if the ItemsSource is set before the SelectedItem, and the ListView control won't highlight the selected row if the SelectedItem is set before the ItemsSource. We tried the SyncFusion SfListView which can be coerced in to being async ready, but comes with its own set of problems.

@AceCoderLaura, created this control:
https://github.com/MelbourneDeveloper/Adapt.Presentation/blob/master/Adapt.Presentation.Standard/Adapt/Presentation/Controls/AdaptListView.cs

It's tight! Async ready, uses no custom renderers, works on all platforms, and is just 117 lines of code.

Clone repo here:
https://github.com/MelbourneDeveloper/Adapt.Presentation.git

A sample for this will be added to the repo soon, and the control will be available in the Adapt.Presentation NuGet package soon.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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