Skip to content

Instantly share code, notes, and snippets.

@edsnider
Last active September 13, 2020 20:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsnider/96393e81118a27ac15f1 to your computer and use it in GitHub Desktop.
Save edsnider/96393e81118a27ac15f1 to your computer and use it in GitHub Desktop.
MvvmCross UIView Tap Command Binding
var set = this.CreateBindingSet<SomeView, SomeViewModel>();
// Use UIView Tap extension method in Cirrious.MvvmCross.Binding.Touch.Views.Gestures:
set.Bind (whateverLabel.Tap ())
.For (v => v.Command)
.To (vm => vm.WhateverCommand);
set.Apply();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment