title: Start a VisualState transition from XAML
body: <p>In a user control (or whatever), we all know that the VisualStateManger can be used in code to start a transition, or animation, like so:</p>
  
  <pre><code>    if (target.IsLocked)
      {
        VisualStateManager.GoToState(this, "Locked", true);
      }
      else if (target.IsBroken)
      {
        VisualStateManager.GoToState(this, "Broken", true);
      }
      else
      {
        VisualStateManager.GoToState(this, "Normal", true);
      }
  </code></pre>
  
  <p>However, there seems to be very little or no information about triggering these type of animations from XAML.  Could a DataTemplate or Trigger be defined that could provide behaviour equivalent to the code listed above?</p>