title: Adding a tag to ListView Item XAML [UWP]
body: <p>I'm trying to add a tag to my ListView Item (like adding a tag to a button).</p>
  
  <p>My XAML:</p>
  
  <pre><code>        &lt;ListView x:Name="gamesList" IsItemClickEnabled="True" ItemClick="gamesList_ItemClick"&gt;
              &lt;ListView.ItemContainerStyle&gt;
                  &lt;Style TargetType="ListViewItem"&gt;
                      &lt;Setter Property="Template"&gt;
                          &lt;Setter.Value&gt;
                              &lt;ControlTemplate&gt;
                                  &lt;ContentPresenter/&gt;
                              &lt;/ControlTemplate&gt;
                          &lt;/Setter.Value&gt;
                      &lt;/Setter&gt;
                  &lt;/Style&gt;
              &lt;/ListView.ItemContainerStyle&gt;
              &lt;ListView.ItemTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;StackPanel&gt;
                          &lt;Grid Height="200" Width="896"&gt;
                              &lt;Rectangle Fill="#FFCCCCCC" HorizontalAlignment="Left" Height="64" Margin="10,71,0,0" Stroke="#FFCCCCCC" VerticalAlignment="Top" Width="100"/&gt;
                              &lt;TextBlock x:Name="voteCount" HorizontalAlignment="Left" Margin="50,79,0,0" TextWrapping="Wrap" Text="{Binding Votes, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" Foreground="#FF107C10" FontWeight="Bold"/&gt;
                              &lt;TextBlock x:Name="voteCountText" HorizontalAlignment="Left" Margin="37,104,0,0" TextWrapping="Wrap" Text="votes" VerticalAlignment="Top" Foreground="#FF292C33"/&gt;
                              &lt;Button x:Name="voteButton" Tag="{Binding Slug, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Content="{Binding BtnVoted, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Margin="10,143,0,0" VerticalAlignment="Top" Width="100" Background="#FF888888" Foreground="#FF292C33" Click="voteButton_Click" IsEnabled="{Binding BtnEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /&gt;
                              &lt;TextBlock x:Name="voteTitle" HorizontalAlignment="Left" Margin="144,80,0,0" TextWrapping="Wrap" Text="{Binding Title, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" FontSize="22" Foreground="#FF292C33"/&gt;
                              &lt;TextBlock x:Name="voteError" HorizontalAlignment="Left" Margin="144,115,0,0" TextWrapping="Wrap" Text="You already voted for this game" VerticalAlignment="Top" Visibility="{Binding Voted, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /&gt;
                              &lt;Rectangle Fill="Black" HorizontalAlignment="Left" Height="4" Margin="10,180,0,0" Stroke="#FFCCCCCC" VerticalAlignment="Top" Width="801"/&gt;
                          &lt;/Grid&gt;
                      &lt;/StackPanel&gt;
                  &lt;/DataTemplate&gt;
              &lt;/ListView.ItemTemplate&gt;
          &lt;/ListView&gt;
  </code></pre>
  
  <p>C# (Partially):</p>
  
  <pre><code>        public async void OnLoaded(object sender, RoutedEventArgs e)
          {
              var response = await start();
  
              dynamic dynJson = JsonConvert.DeserializeObject(response);
  
              foreach (var item in dynJson)
              {
                  Object votedGame = localSettings.Values[item.slug.ToString()];
                  string voted = "Collapsed";
                  string btnVoted = "VOTE";
                  bool btnEnabled = true;
  
                  if(votedGame != null)
                  {
                      voted = "Visible";
                      btnVoted = "VOTED!";
                      btnEnabled = false;
                  }
  
                  listofGames.Add(new Games { Title = item.name, Votes = item.votes, Slug = item.slug, Voted = voted, BtnVoted = btnVoted, BtnEnabled = btnEnabled });
              }
  
              gamesList.ItemsSource = listofGames;
          }
  
          public class Games
          {
              public string Title { get; set; }
              public string Slug { get; set; }
              public string Voted { get; set; }
              public string BtnVoted { get; set; }
              public bool BtnEnabled { get; set; }
              public int Votes { get; set; }
          }
  </code></pre>
  
  <p>The tag should contain data about (in this case) a game title.</p>
  
  <p>So, when the user clicks the item a click function should handle the event and I need to be able to get the data from the tag.</p>