This project has moved and is read-only. For the latest updates, please go here.

How to pass a parameter to a command in Xamarin iOS?

May 30, 2015 at 11:39 PM
I have this binding:

RejectBtn.SetCommand("TouchUpInside", Vm.RejectCommand);

RelayCommand<string> _rejectCommand;
public RelayCommand<string> RejectCommand
    return _rejectCommand ?? (_rejectCommand = 
            new RelayCommand<string>(
        async (param) =>


How do i pass a parameter?
Jun 17, 2015 at 8:09 AM
For now, you need to create a Binding to the parameter. Are you looking at a fixed value parameter? For the moment I am not supporting that, but I will add it in a future release. For the moment, you should ignore the SetCommand button, and use

RejectBtn.TouchUpInside+= (s, e) =>