Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Custom Bindings in MvvmCross

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Custom Bindings in MvvmCross

Avatar for Stuart Lodge

Stuart Lodge

May 14, 2013

More Decks by Stuart Lodge

Other Decks in Technology

Transcript

  1. Data-Binding to ‘Controls’ MyControl MyValue MyValueChanged CreateBinding .For(view => view.MyValue)

    .To(vm => vm.Name) As long as MyValueChanged is EventHandler, should just work!
  2. Alternatives… You can always directly use: – FindViewById<T> or [Outlet]s

    With: – ViewModel – ViewModel.PropertyChanged But: – The same warnings apply!
  3. Sample Shown in only a couple of apps… https://github.com/slodge/MvvmCross- Tutorials/tree/master/CustomBinding

    https://github.com/slodge/MvvmCross- Tutorials/tree/master/Sample%20-%20CirriousConference