title: XAML ListBox to TextBox Update code
body: <p>I know i've asked variants of this question before, but after quite a few hours of testing and researching. I've managed to get my XAML code to 50% of how I want it to work, and I need help with the rest. 
  I've got my xaml code to load an XML file into a Listbox, and bound my textbox to the listbox. However, The textbox's text will not update when I select another value in the ListBox.</p>
  
  <pre><code>&lt;Window x:Class="BeginnersJapanese.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="274" Width="525"&gt;
      &lt;Window.Resources&gt;
          &lt;XmlDataProvider x:Key="XmlData"
                     Source="https://www.dropbox.com/s/jgw84kqj2k1bwq1/JapaneseEnglishData.xml?dl=1"
                     XPath="WordList/Word"/&gt;
      &lt;/Window.Resources&gt;
      &lt;Grid Margin="0,0,0,1"&gt;
          &lt;Grid.DataContext&gt;
              &lt;XmlDataProvider x:Name="XmlData" Source="https://www.dropbox.com/s/jgw84kqj2k1bwq1/JapaneseEnglishData.xml?dl=1" XPath="WordList/Word"/&gt;
          &lt;/Grid.DataContext&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="auto"/&gt;
              &lt;RowDefinition/&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;Button Content="Speak" Name="speakBtn" HorizontalAlignment="Left" Margin="252,158,0,0" Grid.Row="1" VerticalAlignment="Top" Width="121" Click="speakButton_Click"/&gt;
          &lt;ListBox Name="listBx" HorizontalAlignment="Left" ItemsSource="{Binding XPath=/WordList/Word/English}" Height="225" Margin="10,10,0,0" Grid.Row="1" VerticalAlignment="Top" Width="152" IsSynchronizedWithCurrentItem="True"/&gt;
          &lt;TextBox Name="txtBox" HorizontalAlignment="Left" Height="23" Margin="167,110,0,0" Grid.Row="1" TextWrapping="Wrap" DataContext="{Binding ElementName=listBx, Path=SelectedItem.InnerText}" Text="{Binding XPath=Kanji}" VerticalAlignment="Top" Width="340" IsReadOnly="True"/&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Essentially, What I am trying to do is select an item in the listbox and it display the Japanese equivalent from my xml file. Which looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;!--This is a generated XML File--&gt;
  &lt;WordList&gt;
    &lt;Word&gt;
      &lt;English&gt;Me&lt;/English&gt;
      &lt;Romaji&gt;boku&lt;/Romaji&gt;
      &lt;Kanji&gt;ぼく&lt;/Kanji&gt;
    &lt;/Word&gt;
    &lt;Word&gt;
      &lt;English&gt;I&lt;/English&gt;
      &lt;Romaji&gt;boku&lt;/Romaji&gt;
      &lt;Kanji&gt;ぼく&lt;/Kanji&gt;
    &lt;/Word&gt;
    &lt;Word&gt;
      &lt;English&gt;Me&lt;/English&gt;
      &lt;Romaji&gt;watashi&lt;/Romaji&gt;
      &lt;Kanji&gt;わたし&lt;/Kanji&gt;
    &lt;/Word&gt;
  &lt;/WordList&gt;
  </code></pre>
  
  <p>The current issue is the textbox will only display boku(ぼく) and will not change to watashi(わたし) when I change the Listbox to the other Me word in the list.</p>