Last active
September 13, 2020 20:28
-
-
Save edsnider/96393e81118a27ac15f1 to your computer and use it in GitHub Desktop.
MvvmCross UIView Tap Command Binding
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
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