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

Custom Bindings in MvvmCross

Custom Bindings in MvvmCross

Stuart Lodge

May 14, 2013
Tweet

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