title: VisualStateManager silverlight
body: <p>Hello I am stuck on getting my VisualState working properly. What I am trying to achieve is setting a border colour on user input so what I do is this </p>
  
  <pre><code>VisualStateManager.GoToState(textbox, "BorderHighlight", false);
  </code></pre>
  
  <p>The storyboard is defined in a separate VisualStateGroup </p>
  
  <pre><code>&lt;VisualState x:Name="BorderHighlight" &gt;
      &lt;Storyboard &gt;
          &lt;ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:05"  
              Storyboard.TargetName="Border" Storyboard.TargetProperty="        
                 (Border.BorderBrush).(SolidColorBrush.Color)"&gt;
                     ...
           &lt;/ColorAnimationUsingKeyFrames&gt;
      &lt;/Storyboard&gt;
  &lt;/VisualState&gt;
  </code></pre>
  
  <p>The problem is that the textbox now does not leave the visualstate so it can't be triggered a second time. So somehow I have to switch it back to normal state. I tried adding a Normal state
            
  to the group seems this is not allowed (can only have one Normal state?)
  I also tried to set a Normal state the same way I set highlight state after the first one is completed that did not work either.</p>
  
  <p>Please if anyone can point me in the right direction here I'd be most grateful.</p>