title: How to access ProgressBar in ListView in C# WPF without Name
body: <p>I'm working on a project in C# with WPF. I have a <code>ListView</code> that is populated by binds to an object, which _name is a field of. I want to be able to update a specific <code>ProgressBar</code> by knowing which _name I want to update.  So if the current _name is "Task A", I want to update the <code>ProgressBar</code> in the same row as "Task A". However, since I can't name the progress bars (I got an error message when trying to bind data to the Name), I haven't been able to figure out how to access the <code>ProgressBar</code> from the code. I've tried using Tags, but I haven't been able to figure out how to access a control with a certain tag.  Any help would be greatly appreciated.  Shown below is some of the XAML of my project.</p>
  
  <pre><code> &lt;ListView.View&gt;
              &lt;GridView&gt;
                  &lt;GridViewColumn Width="30"&gt;
                      &lt;GridViewColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;CheckBox Tag="{Binding _name}" IsChecked="True"/&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/GridViewColumn.CellTemplate&gt;
                  &lt;/GridViewColumn&gt;
                  &lt;GridViewColumn Width="200" DisplayMemberBinding="{Binding _name}"&gt;Task Name&lt;/GridViewColumn&gt;
                  &lt;GridViewColumn Width="150"&gt;
                      &lt;GridViewColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;ProgressBar Width="145" Height="15" Maximum="100" Value="{Binding _progress}" Tag="{Binding _name}"/&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/GridViewColumn.CellTemplate&gt;
                  &lt;/GridViewColumn&gt;
              &lt;/GridView&gt;
          &lt;/ListView.View&gt;
  </code></pre>