title: How to extract ListView Item using Xamarin Prism EventToCommand behaviour
body: <p>I am using Prism Library with Xamarin Forms and trying to use the EventToCommandBehavior described <a href="http://prismlibrary.readthedocs.io/en/latest/Xamarin-Forms/6-EventToCommandBehavior/" rel="nofollow noreferrer">here</a> to attach the ItemTapped behaviour on a Listview.</p>
  
  <p>When the ItemTappedCommand delegate is executed the event arguments are null which means I cannot extract the ListView Item.</p>
  
  <p>Below is my ViewModel code:</p>
  
  <pre><code> private DelegateCommand&lt;ItemTappedEventArgs&gt; _itemTappedCommand;
      public RecipeListViewModel(INavigationService navigationService) : base(navigationService)
      {
  
          RefreshDataCommand = new Command(async () =&gt; await RefreshData());
          _itemTappedCommand = new DelegateCommand&lt;ItemTappedEventArgs&gt;(args =&gt; {
              var b = args; // args is null
              _navigationService.NavigateAsync(nameof(Recipe));
          });
      }
  
  public DelegateCommand&lt;ItemTappedEventArgs&gt; ItemTappedCommand { get { return _itemTappedCommand; } }
  </code></pre>
  
  <p>This is my XAML</p>
  
  <pre><code>&lt;ListView ItemsSource="{Binding Recipes}"
              HasUnevenRows="false"
              IsPullToRefreshEnabled="true"
              CachingStrategy="RecycleElement"
              IsRefreshing="{Binding IsBusy, Mode=OneWay}"
              RefreshCommand="{Binding RefreshDataCommand}"
              x:Name="lvRecipes"&gt;
          &lt;ListView.Behaviors&gt;
              &lt;b:EventToCommandBehavior EventName="ItemTapped" Command="{Binding ItemTappedCommand}" /&gt;
          &lt;/ListView.Behaviors&gt;
          &lt;ListView.Header&gt;..........
  .....&lt;/ListView&gt;
  </code></pre>