Created
June 26, 2017 13:16
-
-
Save wsrzx/cf73ceb7fb0cf2b860bc079e2b94e5da to your computer and use it in GitHub Desktop.
UIView Tap Command Binding using MvvmCross
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add using MvvmCross.Binding.iOS.Views.Gestures; | |
var set = this.CreateBindingSet<TheViewController, TheViewModel>(); | |
set.Bind (TheControl.Tap()).For(t => t.Command).To(vm => vm.TheCommand); | |
set.Apply(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment