title: Xamarin.IOS : MVVMCross Passing parameter from view to ViewModel
body: <p>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? </p>
  
  <p>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?</p>
  
  <p>Thank you</p>
  
  <p><strong>Update</strong></p>
  
  <p>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. </p>
  
  <pre><code>this.DelayBind(() =&gt;
  {
      var bSet = this.CreateBindingSet&lt;MyeCell, SomeViewModel&gt;();
      bSet.Bind(cellIndex).To(vm =&gt; vm.index);
      bSet.Bind(UserPostBtn).To(vm =&gt; vm.EditPhotoCommand);
      bSet.Apply();
  });
  </code></pre>
  
  <p>I tried using delaybind to connect view and viewmodel but on button clickm I am getting the following error:</p>
  
  <blockquote>
    <p>invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific
    - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.</p>
  </blockquote>