title: Change Visual State On PropertyChanged
body: <p>Is it possible to add a behaviour in Blend to switch to a different visual state in response to a property changed event on a binding? It would need to switch to this state for a few seconds and then back out.</p>
  
  <p>I'm trying to change the background colour of a control everytime a count value on the datacoontext changes. I've tried using a GoToStateAction and EventTrigger/DataTrigger but can't quite get the trigger setup right - I suspect that I need to approach this in a different way but I'm not sure how.
  Any help would be appreciated - </p>
  
  <p>Here is the xaml for the border - I'm stuck on how to set up the trigger to change the visual state - I want to switch to BrightState for a few seconds and back to NormalState everytime the Value of Count on the viewmodel changes</p>
  
  <pre><code>&lt;Border x:Name="border" Grid.Row="2" Background="CadetBlue"&gt;
          &lt;StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center"&gt;
              &lt;TextBlock&gt;&lt;Run Text="Count:"/&gt;&lt;/TextBlock&gt;
              &lt;TextBlock x:Name="textBlock" Text="{Binding Count}" MinWidth="30"&gt;
                  &lt;i:Interaction.Triggers&gt;
                      &lt;!--&lt;i:EventTrigger EventName="MouseLeftButtonDown" SourceName="textBlock"&gt;
                          &lt;ei:GoToStateAction/&gt;
                      &lt;/i:EventTrigger&gt;--&gt;
                  &lt;/i:Interaction.Triggers&gt;
              &lt;/TextBlock&gt;
          &lt;/StackPanel&gt;
      &lt;/Border&gt;
  </code></pre>
  
  <p>Here are the visual states defined to change the background colour of the border:</p>
  
  <pre><code>&lt;VisualStateManager.VisualStateGroups&gt;
          &lt;VisualStateGroup x:Name="FlickerStateGroup"&gt;
              &lt;VisualState x:Name="NormalState"/&gt;
              &lt;VisualState x:Name="BrightState"&gt;
                  &lt;Storyboard&gt;
                      &lt;ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border"&gt;
                          &lt;EasingColorKeyFrame KeyTime="0" Value="#FF6CD9DC"/&gt;
                      &lt;/ColorAnimationUsingKeyFrames&gt;
                  &lt;/Storyboard&gt;
              &lt;/VisualState&gt;
          &lt;/VisualStateGroup&gt;
      &lt;/VisualStateManager.VisualStateGroups&gt;
  </code></pre>