title: How to bind counter value to the textblock?
body: <p>I'd like to be able to see the counter value in the textblock which incremented on a click of the button. I need to bind it to the textblock. I am wondering what will be the correct way to do it. </p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;TextBlock Text="{Binding Path=counter}" /&gt;
  &lt;Button x:Name="Nextbt" Content="Next" Click="ClickNextButton"/&gt;
  </code></pre>
  
  <p>C#:</p>
  
  <pre><code>private void ClickNextButton(object sender, System.Windows.RoutedEventArgs e){
  counter += 1;
  if (counter == 1)
  {
  
  }
  if (counter == 2)
  {
  
  }}
  </code></pre>
  
  <p>Thank you in advance.</p>