title: WPF Binding Label Content to Property
body: <p>I have read several articles about this and can't quite seem to get my label to update when my property is changed. The PropertyChanged event is firing, and the property is updating to the new text but the label is not updating. 
  Thanks for the help!</p>
  
  <p>XAML</p>
  
  <pre><code> &lt;Grid.Resources&gt;
       &lt;c:UserInformation x:Key="myTaskData"/&gt;
   &lt;/Grid.Resources&gt;
   &lt;Label Name="lblTaskNameTitle" Content="{Binding Path=propTaskName, UpdateSourceTrigger=PropertyChanged}"/&gt;
  </code></pre>
  
  <p>Window</p>
  
  <pre><code> UserInformation t = new UserInformation();                
  
   t.propTaskName = "Updated Task Name";
   this.DataContext = t.propTaskName;
  </code></pre>
  
  <p>Code Behind</p>
  
  <pre><code>class UserInformation : INotifyPropertyChanged
   {
          private string strTaskName = "Task Name: ";
          public string propTaskName
          {
              get { return this.strTaskName; }
              set 
              { 
                  this.strTaskName = value;
                  NotifyPropertyChanged("propTaskName");  //Call the method to set off the PropertyChanged event.
              }
          }
  
          //INotifyPropertyChanged stuff  
          public event PropertyChangedEventHandler PropertyChanged;
          private void NotifyPropertyChanged(string propertyName)
          {
  
              if (PropertyChanged != null)
              {
                  PropertyChanged(this, new PropertyChangedEventArgs(propertyName));  
              }
          }
  </code></pre>
  
  <p>Updated to reflect comment suggestions.</p>