title: get selected item ID from list view when click a button on the list view
body: <p>Below is <code>xaml</code> and <code>ListView</code>:</p>
  
  <pre><code> &lt;ListView x:Name="lvImages" ItemsSource="{Binding Path=resimGuncelle}" SelectedItem="{Binding Path=ID}"&gt;
              &lt;ListView.View&gt;
                  &lt;GridView&gt;
                      &lt;GridViewColumn&gt;
                          &lt;GridViewColumn.CellTemplate&gt;
                              &lt;DataTemplate&gt;
                                  &lt;Image Name="MyImage" Source="{Binding RESIM_YOLU}" Width="120" Height="110" /&gt;
                              &lt;/DataTemplate&gt;
                          &lt;/GridViewColumn.CellTemplate&gt;
                      &lt;/GridViewColumn&gt;
                      &lt;GridViewColumn Header="Title" DisplayMemberBinding="{Binding FileName}" x:Name="txtx" x:Uid="dd" /&gt;
                      &lt;GridViewColumn&gt;
                          &lt;GridViewColumn.CellTemplate&gt;
                              &lt;DataTemplate&gt;
                                  &lt;Button Style="{StaticResource DaireButtonResimSil}" x:Name="btndil" Click="btndil_Click"/&gt;
                              &lt;/DataTemplate&gt;
                          &lt;/GridViewColumn.CellTemplate&gt;
                      &lt;/GridViewColumn&gt;
                  &lt;/GridView&gt;
              &lt;/ListView.View&gt;
          &lt;/ListView&gt;
  </code></pre>
  
  <p>I want to get Selected item ID , something like this:</p>
  
  <pre><code> private void btndil_Click(object sender, RoutedEventArgs e)
      {
          var selectedImageId = ((ResimGuncelleme)lvImages.SelectedItem).ID;
  
      }
  </code></pre>