title: How can I bind Foreground to a property in my ViewModel?
body: <p>I would like to bind the foreground property of a TextBlock to a Property in my ViewModel.</p>
  
  <p>This doesn't work :</p>
  
  <p><strong>Edit</strong></p>
  
  <p>View :  </p>
  
  <pre><code>TextBlock 
  Text="{Binding Path=FullName, Mode=OneWay}" 
  Foreground="{Binding Path=ForegroundColor}"
  Margin="0 5 3 5"
  </code></pre>
  
  <p>Code behind:  </p>
  
  <pre><code>CustomerHeaderViewModel customerHeaderViewModel = new CustomerHeaderViewModel();
  customerHeaderViewModel.LoadCustomers();
  CustomerHeaderView.DataContext = customerHeaderViewModel;
  </code></pre>
  
  <p>View Model:  </p>
  
  <pre><code>private System.Windows.Media.Brush _foregroundColor;
  _foregroundColor = System.Windows.Media.Brushes.DarkSeaGreen;
  
  public System.Windows.Media.Brush ForegroundColor
  {
      get { return _foregroundColor; }
      set { _foregroundColor = value; 
          OnPropertyChanged("ForegroundColor");
      }
  }
  
  public CustomerHeaderViewModel()
  {
  ForegroundColor = System.Windows.Media.Brushes.Red;
  }
  </code></pre>
  
  <p>All other properties (Text etc) correctly bind.</p>
  
  <p>What am I doing wrong?</p>