title: Trigger Style on One Column of GridView
body: <p>My question is similar to <a href="https://stackoverflow.com/questions/851511/wpf-grid-how-to-apply-a-style-for-just-one-column">WPF Grid - How to apply a style for just one column?</a> but applies to a <code>GridView</code> inside of a <code>ListView</code></p>
  
  <p>I'm trying to apply a trigger that will change the color of text within a <code>TextBlock</code> only in a given column within the <code>GridView</code>. If I take out the line commented <code>THIS</code> each textblock in the row is affected.</p>
  
  <pre><code>&lt;ListView&gt;
      &lt;ListView.Resources&gt;
          &lt;Style TargetType="{x:Type TextBlock}"&gt;
              &lt;Setter Property="Foreground" Value="White" /&gt;
          &lt;/Style&gt;
      &lt;/ListView.Resources&gt;
      &lt;ListView.View&gt;
          &lt;GridView x:Name="MyGridView" ColumnHeaderContainerStyle="{StaticResource GridViewColumnHeaderStyleNew}"&gt;
              &lt;GridViewColumn Width="90" Header="Name" DisplayMemberBinding="{Binding Name}"/&gt;
              &lt;GridViewColumn Width="90" Header="Option" DisplayMemberBinding="{Binding Option}"/&gt;
              &lt;GridViewColumn Width="90" Header="Dir" DisplayMemberBinding="{Binding Directory}"/&gt;
              &lt;GridViewColumn Width="90" Header="Size" DisplayMemberBinding="{Binding Size}"/&gt;
              &lt;GridViewColumn Width="90" Header="Status" &gt;
                  &lt;GridViewColumn.CellTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;TextBlock Text="{Binding Status}"&gt;
                              &lt;TextBlock.Style&gt;
                                  &lt;Style TargetType="{x:Type TextBlock}"&gt;
                                      &lt;Setter Property="Foreground" Value="White" /&gt;
                                      &lt;Style.Triggers&gt;
                                          &lt;DataTrigger Binding="{Binding Status}" Value="Overheating"&gt;
                                              &lt;DataTrigger.EnterActions&gt;
                                                  &lt;BeginStoryboard&gt;
                                                      &lt;Storyboard&gt;
                                                          &lt;ColorAnimation Storyboard.TargetProperty="Foreground.Color" From="White" To="Red" Duration="0:0:2" AutoReverse="True" RepeatBehavior="Forever" /&gt;
                                                      &lt;/Storyboard&gt;
                                                  &lt;/BeginStoryboard&gt;
                                              &lt;/DataTrigger.EnterActions&gt;
                                          &lt;/DataTrigger&gt;
                                      &lt;/Style.Triggers&gt;
                                  &lt;/Style&gt;
                              &lt;/TextBlock.Style&gt;
                          &lt;/TextBlock&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/GridViewColumn.CellTemplate&gt;
              &lt;/GridViewColumn&gt;
          &lt;/GridView&gt;
      &lt;/ListView.View&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>What changes to that line would make it so that only the 5<sup>th</sup> column which contains the text block is affected by the multitrigger?</p>
  
  <p><strong>[EDIT 1]</strong> Added code for <code>GridView</code></p>
  
  <p><strong>[EDIT 2]</strong> I modified the last <code>GridViewColumn</code> to give it its own style</p>
  
  <p><strong>[EDIT 3]</strong> Removed the <code>DisplayMemberBinding</code> and added a <code>Setter</code> property... it works :). </p>
  
  <p>Updated source code to reflect correct answer.</p>