title: How to get ObservableCollection item by ListView ContextAction?
body: <p>I need to delete an item from my <code>ObservableCollection&lt;ViewModels.ZoneViewModel&gt;</code> by using contextactions. I'm trying to do this but I end up deleting nothing as the object I'm trying to delete is just taken from the listview, instead of the observablecollection.</p>
  
  <pre><code>public async void OnDelete(object sender, EventArgs e) {
    var menuItem = ((MenuItem) sender);
  
    if (menuItem != null) {
      var selectedZone = (ViewModels.ZoneViewModel) menuItem.CommandParameter;
  
      var deleteAction = await DisplayActionSheet("Delete " + selectedZone.Name + "?", "Cancel", "Delete");
  
      switch (deleteAction) {
        case "Delete":
  
          await DisplayAlert("delete Context Action clicked: ", menuItem.CommandParameter + "Name= " + selectedZone.Name + " Address=" + selectedZone.Address + " Image=" + selectedZone.Image, "OK");
          Zones = await BlobCache.UserAccount.GetObject &lt; ObservableCollection &lt; ViewModels.ZoneViewModel &gt;&gt; ("zones");
          Zones.Remove(selectedZone);
          await BlobCache.UserAccount.InsertObject &lt; ObservableCollection &lt; ViewModels.ZoneViewModel &gt;&gt; ("zones", Zones);
          zonesList.ItemsSource = Zones;
  
          break;
      }
  
    }
  
  }
  </code></pre>
  
  <p>So how do I get the right item to delete from my observablecollection, the one that I selected via contextaction?</p>