I am using MVVMCross for my xamarin ios project. From my custom cell view, I want to pass a parameter to its view model. is it possible using MVVMCross?
I tried using CommandParameter property but it didn't work. Is it possible to pass parameters from view to viewmodel, If yes can someone provide a snippet?
Thank you
Update
My cell has button and on button click I want to know the cell index of the button being clicked to perform the operation. I am using the following code to do that.
this.DelayBind(() =>
{
var bSet = this.CreateBindingSet<MyeCell, SomeViewModel>();
bSet.Bind(cellIndex).To(vm => vm.index);
bSet.Bind(UserPostBtn).To(vm => vm.EditPhotoCommand);
bSet.Apply();
});
I tried using delaybind to connect view and viewmodel but on button clickm I am getting the following error:
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.