title: set hyperlink color in datagrid when highlighted
body: <p>I have a WPF app.</p>
  
  <p>I use the datagrid.</p>
  
  <p>Inside one of the columns I am using a hyperlink. The style sets this link to green.</p>
  
  <p>When I highlight a row in the datagrid the forecolor of the hyperlink does not chnage to white.  it remains green and as such not easiliy read/seen.</p>
  
  <p>I have tried to add a triiger but there does not seem to be a propery/event for hightlighted - only isMouseOver.</p>
  
  <p>This is my grid:</p>
  
  <pre><code>    &lt;DataGrid 
              &lt;DataGrid.Columns&gt;
                  &lt;DataGridTextColumn Header="Work Item" Width="*" IsReadOnly="True" Binding="{Binding Description}" /&gt;
                  &lt;DataGridTemplateColumn Header=""&gt;
                      &lt;DataGridTemplateColumn.CellTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;TextBlock&gt;
                                  &lt;Hyperlink Style="{StaticResource Field_Hyperlink}"&gt;Remove&lt;/Hyperlink&gt;
                              &lt;/TextBlock&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/DataGridTemplateColumn.CellTemplate&gt;
                  &lt;/DataGridTemplateColumn&gt;                   
          &lt;/DataGrid.Columns&gt;
      &lt;/DataGrid&gt;
  </code></pre>
  
  <p>and my style at the moment:</p>
  
  <pre><code>    &lt;Style TargetType="Hyperlink"  x:Key="Field_Hyperlink" &gt;
          &lt;Setter Property="Foreground" Value="DarkGreen"/&gt;
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                  &lt;Setter Property="Foreground" Value="White"/&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  </code></pre>