title: Editing a WPF ListView Item at runtime from c#
body: <p>I'm trying to edit a WPF listview item from c# at runtime but I dont know how to do it.In WindowsForms I was using:</p>
  
  <pre><code>foreach (ListViewItem item in listView1.Items)
  {
      if (item.SubItems[2].Text == id)
      {
          if (pingtime != 0)
              item.SubItems[6].Text = pingtime.ToString();
          else item.SubItems[6].Text = "999";
      }
  }
  </code></pre>
  
  <p>but this is not working because in WPF there is no <code>Item.SubItems[]</code>. 
  What I need to do is to find the item that contains the right id, and then to edit the 6th column of the item with the new value.
  How can I do it in WPF?</p>