title: Get row of a checkbox inside a listview wpf
body: <p>I'm new on this thing and I have a problem that after some research I coouldn't find any answer that worked...
  I have this XAML code:</p>
  
  <pre><code>&lt;ListView Margin="0,0,0,0" Name="EpisodesList"&gt;
          &lt;ListView.View&gt;
              &lt;GridView&gt;
                  &lt;GridViewColumn Header="Season" Width="Auto"&gt;
                      &lt;GridViewColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;StackPanel&gt;
                                  &lt;TextBlock Text="{Binding Season}"/&gt;
                              &lt;/StackPanel&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/GridViewColumn.CellTemplate&gt;
                  &lt;/GridViewColumn&gt;
                  &lt;GridViewColumn Header="Episode" Width="50"&gt;
                      &lt;GridViewColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;StackPanel&gt;
                                  &lt;TextBlock Text="{Binding Episode}"/&gt;
                              &lt;/StackPanel&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/GridViewColumn.CellTemplate&gt;
                  &lt;/GridViewColumn&gt;
                  &lt;GridViewColumn Header="Assitido" Width="50"&gt;
                      &lt;GridViewColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;StackPanel&gt;
                                  &lt;CheckBox IsChecked="{Binding Watched}"/&gt;
                              &lt;/StackPanel&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/GridViewColumn.CellTemplate&gt;
                  &lt;/GridViewColumn&gt;
                  &lt;GridViewColumn Header="Baixar" Width="50"&gt;
                      &lt;GridViewColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;StackPanel&gt;
                                  &lt;CheckBox IsChecked="{Binding Download}"/&gt;
                              &lt;/StackPanel&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/GridViewColumn.CellTemplate&gt;
                  &lt;/GridViewColumn&gt;
              &lt;/GridView&gt;
          &lt;/ListView.View&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>And this behind the XAML:</p>
  
  <pre><code>public SerieInfo()
      {
          InitializeComponent();
  
          List&lt;Episodes&gt; episodes = new List&lt;Episodes&gt;();
          for (int i = 0; i &lt; 10; i++)
          {
              episodes.Add(new Episodes()
              {
                  Season = i.ToString(),
                  Episode = (i + 2).ToString(),
                  Download = true,
                  Watched = true,
              });
          }
          EpisodesList.ItemsSource = episodes;
  
      }
  
  
      public class Episodes
      {
          public string Season { get; set; }
          public string Episode { get; set; }
          public bool Download { get; set; }
          public bool Watched { get; set; }
  
      }
  </code></pre>
  
  <p>When any of the checkboxes get unchecked or checked I'll need to get the season value of that row for example...</p>
  
  <pre><code>+--------+---------+---------+----------+
  | Season | Episode | Watched | Download |
  +--------+---------+---------+----------+
  | 1      |   3     | Checked |Unchecked | &lt;-- Get the "1" value when any checkbox change
  +--------+---------+---------+----------+
  </code></pre>