title: wpf bind textbox to List - MainWindow.List.Item[0]
body: <p>I have a static List in my MainWindow. If changes occur, CurrValue is set immediately. </p>
  
  <pre><code>public static List&lt;varVisu&gt; varVisuListDll = new List&lt;varVisu&gt;();
  </code></pre>
  
  <p>In my class, there is a INotifyPropertyChanged implementation</p>
  
  <pre><code>    public string m_CurrValue;
  
      public event PropertyChangedEventHandler PropertyChanged;
      protected void Notify(string propertyName)
      {
          if (this.PropertyChanged != null)
          {
              PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
          }
      }
  
      public string CurrValue
      {
          get { return m_CurrValue; }
          set 
          {
              if (value != m_CurrValue)
              {
                  //set value
                  m_CurrValue = value;
                  //notify anyone who cares about it
                  Notify("CurrValue");
              }
          }
      }
  </code></pre>
  
  <p>This works fine, but now, I <strong>want to bind a Textbox (Text) in Window#2 to the first item (varVisuListDll[0].CurrValue)</strong> in this List. </p>
  
  <p>How can I bind the TextBox.Text to this value (Text={Path, UpdateSourceTrigger ...}??</p>
  
  <pre><code>&lt;TextBox x:Name="txtManualMode" Text="{Binding ElementName=????, Path=CurrValue, UpdateSourceTrigger=PropertyChanged}" 
  </code></pre>
  
  <p>I have tested with (dtgrVariables.ItemSource=MainWindow.varVisuListDll). This work's.</p>
  
  <p>Please help me ..  </p>