title: how to set binding for the label in wpf
body: <p>I need to bind a property to a label. i have written the following code:
   xaml for the label is </p>
  
  <pre><code>&lt;Label Canvas.Left="807.3" Canvas.Top="148.9" Height="33.567" x:Name="label2"
         Width="98" FontFamily="Tw Cen MT" FontSize="24" FontWeight="Bold"
         Foreground="#FFFEE3A4"
         Content="{Binding Path=UserInformation.AccountBalance,Mode=OneWay}"&gt;
      &lt;Label.Background&gt;
          &lt;ImageBrush /&gt;
      &lt;/Label.Background&gt;
  &lt;/Label&gt;
  </code></pre>
  
  <p>The class whcih have the AccountBalance</p>
  
  <pre><code>public class CustomerInformation : INotifyPropertyChanged
      {
          public CustomerInformation()
          {
              _Balance = 0.0;
          }
  
          #region INotifyPropertyChanged Members
          public event PropertyChangedEventHandler PropertyChanged;
          #endregion
  
   public double AccountBalance
          {
              get { return _Balance; } 
          set 
          {
              _wepaBalance = value;
              FirePropertyChanged("AccountBalance");
          } 
  
          }
  
   protected void FirePropertyChanged(string propertyName)
          {
              if (this.PropertyChanged != null)
              {
                  this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
              }
          }
  }
  </code></pre>
  
  <p>datacontext is set as below</p>
  
  <p>this.LayoutRoot.DataContext = this;</p>
  
  <p>behind the xaml.cs the following code is written to access the UserInfo which is a global object</p>
  
  <pre><code>public CustomerInformation UserInformation
          {
              get
              {
  
                  return Globalobjs._Object.UserInfo;
              }
          }
  </code></pre>
  
  <p>xamls.cs is derived from Window only.</p>
  
  <p>The problem is PropertyChangedEventHandler of INotifyPropertyChanged is always null when called .</p>
  
  <p>Can any 1 please help me on this issue?</p>