There is a listBox named as listB_addRemove. I tried to bind a textbox to that listBox but I failed and nothing has shown in textbox. Below is what I tried:
<TextBox Height="23" HorizontalAlignment="Left" Margin="71,40,0,0" Name="textBox1"
VerticalAlignment="Top" Width="120" Grid.Row="1"
DataContext="{Binding ElementName=listB_addRemove, Path=SelectedItem}" />
Where is the problem?
Bind the Text, not the
DataContext: