title: WPF Binding To Single List Item Using Element Property As Index Value
body: <p>I'm trying to bind to a single item from a collection but I need to be able to pass in a value from the element as the index.  Below is a sample of what I'm trying to accomplish.</p>
  
  <p><strong>ViewModel</strong></p>
  
  <pre><code>public Dictionary&lt;string, string&gt; ListOfString = new Dictionary&lt;string, string&gt;
  { 
      {"0", "TextToDisplay" }
  };
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;TextBox Tag="0" Text="{Binding ListOfString[Self.Tag]}" /&gt;
  </code></pre>
  
  <p>I'm not sure how to get the value of <code>TextBox.Tag</code> and pass it to <code>ListOfString</code></p>