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

Two way binding for ObservableCollection

$
0
0

We have a view model that contains ObservableCollection property and a custom view that contains bindable property to bind a collection to.

What is the best practice to define this with two way binding support?

Should view model's property has setter?
Should view's property be declared with BindableProperty.Create? Should its type be IEnumerable or ObservableCollection?
How to properly modify collection from the view class?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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