title: How to get Listview ItemClick Vallue in Relay Command
body: <p>Hi i'm working in windows store app with MVVM pattern and i have some problem in catch the listview itemclick value in relay command. Now i got the selected item value.But don't know how to get itemclickValue. Here i have attach my code. </p>
  
  <h1>XAML</h1>
  
  <pre><code> &lt;ListView x:Name="lstItem" ItemTemplate="{StaticResource ItemTemplate}"  ItemsSource="{Binding ItemList}" Padding="130,0,0,0" SelectedItem="{Binding SelectedItem,Mode=TwoWay}"&gt;
              &lt;Triggers:Interactions.Triggers&gt;
                  &lt;Triggers:EventTrigger EventName="SelectionChanged"&gt;
                      &lt;Triggers:InvokeCommandAction Command="{Binding SelectedItemCommand}" CommandParameter="{Binding SelectedItem,Mode=TwoWay}"/&gt;
                  &lt;/Triggers:EventTrigger&gt;
              &lt;/Triggers:Interactions.Triggers&gt;
          &lt;/ListView&gt;
  </code></pre>
  
  <h1>ViewModel Code</h1>
  
  <pre><code>private Item _selectedItem;
      public Item SelectedItem { get { return _selectedItem; } set { _selectedItem = value; NotifyPropertyChanged("SelectedTrends"); } }
  
  
  
  private RelayCommand&lt;Item&gt; _selectedItemCommand;
      public RelayCommand&lt;Item&gt; SelectedItemCommand
      {
          get
          {
              return this._selectedItemCommand
                  ?? (this._selectedItemCommand= new RelayCommand&lt;Item&gt;(item=&gt;
                  {
                      MessageDialog messagedialog = new MessageDialog(item.Name,"Test");
                      messagedialog.ShowAsync();
                  }));
          }
  
      }
  </code></pre>