title: Binding textblock foreground color not working
body: <p>xaml code:</p>
  
  <pre><code>&lt;ControlTemplate x:Key="ChkTemplate"
                           TargetType="ListViewItem"&gt;
              &lt;StackPanel Orientation="Horizontal"&gt;                    
                  &lt;CheckBox Margin="0,0,3,0"&gt;
                      &lt;CheckBox.IsChecked&gt;
                          &lt;Binding Path="IsSelected"
                                   Mode="TwoWay"&gt;
                              &lt;Binding.RelativeSource&gt;
                                  &lt;RelativeSource Mode="TemplatedParent" /&gt;
                              &lt;/Binding.RelativeSource&gt;
                          &lt;/Binding&gt;                                
                      &lt;/CheckBox.IsChecked&gt;
                  &lt;/CheckBox&gt;                    
                  &lt;ContentPresenter /&gt;                    
              &lt;/StackPanel&gt;
          &lt;/ControlTemplate&gt;                    
  &lt;DataTemplate DataType="{x:Type ABC:Info}"&gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
          &lt;TextBlock Text="{Binding}"
            Margin="0,0,10,5" Foreground="Green"/&gt;
          &lt;TextBlock Text="{Binding Channel}"
             Margin="3,0,0,0"
             Visibility="{Binding Path=Visible,ElementName=View, Converter={StaticResource BooleanConverter}}" /&gt;
          &lt;TextBlock.Foreground&gt;
              &lt;SolidColorBrush Color="{Binding Foreground}" /&gt;
          &lt;/TextBlock.Foreground&gt;                   
      &lt;/StackPanel&gt;
  &lt;/DataTemplate&gt;   
  &lt;Style TargetType="ListViewItem"
                 x:Key="SelectedItem"&gt;
              &lt;Setter Property="Template"
                      Value="{StaticResource ChkTemplate}" /&gt;
  &lt;/Style&gt; 
  </code></pre>
  
  <p>class:</p>
  
  <pre><code>public class Info : DependencyObject
      {      
             public Brush Foreground
          {
              get { return (Brush)GetValue(ForegroundProperty); }
              set { SetValue(ForegroundProperty, value); }
          }
      }
  </code></pre>
  
  <p>xaml.cs:</p>
  
  <pre><code>private readonly RangeObservableCollection&lt;Info&gt; _validInfo;
  
  Info.Foreground = Brushes.Red;                                        
  _validInfo.Add(Info);
  </code></pre>
  
  <p>Above code is not changing foreground color of textblock what am i doing wrong?</p>