title: Using tag on ListView
body: <p>I am trying to use a tag with my <code>ListView</code> Control and I can't seem to get it working.</p>
  
  <p>I add the tag as follows:</p>
  
  <pre><code>int ID = 1
  foreach(Activity act in ActivityList)
  {
      ListViewItem item = new ListViewItem();
      item.Content = "Banana";
      item.Tag = ID
      myListView.Items.Add(item);
  }
  </code></pre>
  
  <p>The code above seems to work so far...<br>
  Then I want to read the Tag from the <code>ListViewItem</code> but nothing seems to work. ex.  </p>
  
  <pre><code>ListviewItem item = new ListViewItem();
  item = myListView.SelectedItem;
  </code></pre>
  
  <p>What am I missing. this gives me an error saying: </p>
  
  <blockquote>
    <p>'Cannot implicitly convert type 'object' to Windows.UI.Xaml.Controls.ListviewItem. an explicit conversion exists(are you missing a cast?)"</p>
  </blockquote>
  
  <p>What cast am I missing I thought I was placing a <code>ListViewItem</code> into a <code>ListViewItem</code>?</p>