title: Getting Value from ListView
body: <p>Using the following XAML how can I retrieve the value of let's say <code>&lt;TextBlock/SenderName&gt;</code> or any other control nested in the stackpanel depending on the listview current selected item? in C#</p>
  <h1>XAML</h1>
  <pre><code>&lt;ListView x:Name=&quot;ItemListView&quot;  
        ItemsSource=&quot;{Binding}&quot;
        Margin=&quot;1041,120,85,68&quot; SelectionChanged=&quot;ListView1_SelectionChanged&quot;&gt;
      &lt;ListView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;StackPanel&gt;
                  &lt;TextBlock Text=&quot;{Binding SenderName}&quot; 
                     FontSize=&quot;20&quot; Margin=&quot;15,0,0,0&quot; HorizontalAlignment=&quot;Right&quot; /&gt;
                  &lt;TextBlock Text=&quot;{Binding Value}&quot;  
                     FontSize=&quot;18&quot; Margin=&quot;5,0,0,0&quot; TextWrapping=&quot;Wrap&quot; HorizontalAlignment=&quot;Right&quot; /&gt;
                  &lt;TextBlock Visibility=&quot;Collapsed&quot; Text=&quot;{Binding StreamId}&quot; /&gt;
                  &lt;TextBlock Text=&quot;{Binding DateTime}&quot; 
                     FontSize=&quot;16&quot; Margin=&quot;15,0,0,0&quot; HorizontalAlignment=&quot;Right&quot; /&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListView.ItemTemplate&gt;
  &lt;/ListView&gt;
  </code></pre>