Search code examples
mvvmxamarin.iosobserver-patterninotifypropertychanged

MonoTouch INotifyPropertyChanged without large framework


I have a monotouch application that I want to have some MVVM characteristics using INotifyPropertyChanged.

I do not want to include a MVVM framework like MvvmCross to get this working.

I could manually add an event handler to the INotifyPropertyChanging and update text fields (etc) manually, but I am looking for a generic approach that doesn't require a huge 3rd part library.

What do I need to do to get bind a text field to a "viewmodel.property"?


Solution

  • There is a lite version of MVVMCross which allows you to do databinding without the need for incorporating all of the MVVMCross dll's.

    https://github.com/slodge/CrossLight