Skip to content

Instantly share code, notes, and snippets.

@wsrzx
Created June 26, 2017 13:16
Show Gist options
  • Save wsrzx/cf73ceb7fb0cf2b860bc079e2b94e5da to your computer and use it in GitHub Desktop.
Save wsrzx/cf73ceb7fb0cf2b860bc079e2b94e5da to your computer and use it in GitHub Desktop.
UIView Tap Command Binding using MvvmCross
// 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