Does exist a similar EventToCommand (behavior’s) on Android?
Example Silverlight/WPF:
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<Commanding:EventToCommand Command="{Binding DataContext.EditEventTypeCommand,
RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}"
CommandParameter="{Binding}"
PassEventArgsToCommand="True" />
</i:EventTrigger>
</i:Interaction.Triggers>
If you are using mvvmcross, then bindings exist for all events which have
EventHandlersignatures – so you can just use bindings like:There are plenty of examples of this in the samples, plus there are several questions oh here – search for MvvmCross and click.
If you need to bind to an event which has an
EventHandler<T>signature then you can add this yourself – see mvvmcross touch command binding in android