title: Listbox item trigger colour change
body: <p>I am trying to change the colour of the items in a listbox based on a trigger using MVVM</p>
  
  <pre><code> &lt;Border Grid.Row="1" Width="300" Margin="0,0,20,0" BorderThickness="1,2,1,1" CornerRadius="5" BorderBrush="#FF999393" Background="#FFE9EDF1" &gt;
      &lt;ListBox ItemsSource="{Binding LogMessageList, UpdateSourceTrigger=PropertyChanged}" Background="{x:Null}" Margin="3" BorderBrush="{x:Null}" FontSize="13.333" &gt;
          &lt;ListBox.ItemContainerStyle&gt;
               &lt;Style TargetType="ListBoxItem"&gt;
                    &lt;Setter Property="Foreground" Value="#FF403E3E" /&gt;
                    &lt;Style.Triggers&gt;
                         &lt;DataTrigger Binding="{Binding FatalError, UpdateSourceTrigger=PropertyChanged}"  Value="Fatal"&gt;
                          &lt;Setter Property="Foreground" Value="Firebrick" /&gt;
                         &lt;/DataTrigger&gt;
                    &lt;/Style.Triggers&gt;
               &lt;/Style&gt;
           &lt;/ListBox.ItemContainerStyle&gt;                                                       
    &lt;/ListBox&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm setting the property change correctly but nothing seems to change.</p>
  
  <p>Thanks</p>
  
  <p>EDIT:
  Still stuck. Trying </p>
  
  <pre><code>&lt;ListBox.ItemContainerStyle&gt;
      &lt;Style TargetType="ListBoxItem"&gt;
          &lt;Setter Property="Foreground" Value="#FF403E3E" /&gt;
             &lt;Style.Triggers&gt;
                &lt;DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}},Path=DataContext.FatalError, UpdateSourceTrigger=PropertyChanged}"  Value="Fatal"&gt;
              &lt;Setter Property="Foreground" Value="Firebrick" /&gt;
          &lt;/DataTrigger&gt;
        &lt;/Style.Triggers&gt;
     &lt;/Style&gt;
  &lt;/ListBox.ItemContainerStyle&gt;
  </code></pre>