Forum Cross Platform with Xamarin
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Data binding without XAML?

ysteinSelbekkysteinSelbekk NOMember, University

Hi, I have been trying to understand the MVVM pattern looking at data binding using Xamarin.Forms ListView.
What I can't get to work is to actually see the data when populating it on a button press. What I have is this:


customers is a List where the CustomerModel class implements the INotifyPropertyChanged
Where I was hoping this would work.


My main question is - is this at all possible without using XAML?

Best Answer

Answers

  • ysteinSelbekkysteinSelbekk NOMember, University

    Yeah that worked :smile: Changing List<> to ObservableCollection<>
    Thanks :smiley:

Sign In or Register to comment.