title: WPF TextBlock text Binding
body: <p>the TextBlock binding does not work and I cant figure why... </p>
  
  <p>(This Code Works but the TextBlock does not get Updated )</p>
  
  <p><strong>XAML</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;TextBlock x:Name="filterAllText"
   Text="{Binding UpdateSourceTrigger=PropertyChanged}" /&gt;
  </code></pre>
  
  <p><strong>Codebehind</strong></p>
  
  <pre><code>filterAllText.DataContext = LogSession.test.MyCoynt;
  </code></pre>
  
  <p><strong>C#</strong></p>
  
  <pre><code>public class Test : INotifyPropertyChanged {
   public int myCoynt;
  
       public int MyCoynt {
          get { return myCoynt; }
          set {
              myCoynt = value;
              NotifyPropertyChanged();
          }
      }
  
       public event PropertyChangedEventHandler PropertyChanged;
  
       protected virtual void NotifyPropertyChanged(
          [CallerMemberName] String propertyName = "") {
          PropertyChangedEventHandler handler = PropertyChanged;
          if (handler != null) {
              handler(this, new PropertyChangedEventArgs(propertyName));
          }
  }
  </code></pre>