title: How do I get a textbox value to be tied to the count of a List<int>()
body: <p>So if I have 5 values in the List the textbox says "5".</p>
  
  <p>What is the best way to do this?</p>
  
  <p>Specifically, in the code behind, the count of 'lister' would show up in textBox1.</p>
  
  <pre><code>public partial class MainWindow : Window
  {
      public MainWindow()
      {
          InitializeComponent();
      }
  
      List&lt;int&gt; lister = new List&lt;int&gt;();
  
      private void button1_Click(object sender, RoutedEventArgs e)
      {
          lister.Add(1);
      }
  }
  </code></pre>