title: Triggers on a DataTemplate when data is updated
body: <p>I've got a data template for a list box item similar to the one on this page...
  <a href="http://www.davesquared.net/2010/03/wpf-newbie-styles-listbox.html" rel="nofollow noreferrer">link</a></p>
  
  <p>I would like to take it a step further and do something to highlight the items when they change. For example, using the code in the link above, I would like to put a trigger to do something when Widget.Quantity changes. Maybe make the quiantity item (nothing else) flash or something. How can I do that? I include the relevant code below...</p>
  
  <pre><code>    &lt;Window.Resources&gt;
      &lt;Style x:Key="RoundedItem" TargetType="ListBoxItem"&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="ListBoxItem"&gt;
                      &lt;Border CornerRadius="10" BorderBrush="Black" BorderThickness="1" Margin="1"&gt;
                          &lt;ContentPresenter /&gt;
                      &lt;/Border&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
      &lt;DataTemplate DataType="{x:Type local:Widget}"&gt;
          &lt;StackPanel Orientation="Horizontal"&gt;
              &lt;Label Content="{Binding Name}" /&gt;
              &lt;Label Content="{Binding Quantity}" /&gt;
          &lt;/StackPanel&gt;
      &lt;/DataTemplate&gt;
  &lt;/Window.Resources&gt;
  &lt;ListBox ItemsSource="{Binding Widgets}" ItemContainerStyle="{StaticResource RoundedItem}" HorizontalContentAlignment="Stretch" /&gt;
  </code></pre>