How to get Key of selected Observable Collection?
<p>I have an observable collection with KeyValuePair. I need to get the key of the selected item.</p>

<pre><code> private ObservableCollection&lt;KeyValuePair&lt;String, Items&gt;&gt; _items;


 &lt;ListView Grid.Column="0" HorizontalAlignment="Stretch" Padding="5" ItemsSource="{Binding Items}" SelectedValue="{Binding SelectedThings, Mode=TwoWay}"  SelectedValuePath="Value" &gt;
                &lt;ListView.ItemTemplate&gt;
                    &lt;DataTemplate&gt;
                        &lt;StackPanel Orientation="Vertical" HorizontalAlignment="Center"&gt;
                            &lt;Image Height="40" Source="Resources/Apps64.png"/&gt;
                            &lt;TextBlock MinWidth="120" HorizontalAlignment="Stretch" TextAlignment="Center" Text="{Binding Key, UpdateSourceTrigger=PropertyChanged}" /&gt;
                        &lt;/StackPanel&gt;
                    &lt;/DataTemplate&gt;
                &lt;/ListView.ItemTemplate&gt;
            &lt;/ListView&gt;
</code></pre>