title: WPF Data Triggers and Story Boards
body: <p>I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Busy. I have an IsBusy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a &quot;progressAnimation&quot; storyboard when the IsBusy property is true? Blend only lets me add event triggers at the UserControl level, and I can only create property triggers in my data templates.</p>
  <p>The &quot;progressAnimation&quot; is defined as a resource in the user control.</p>
  <p>I tried adding the DataTriggers as a Style on the UserControl, but when I try to start the StoryBoard I get the following error:</p>
  <blockquote>
  <p>'System.Windows.Style' value cannot be assigned to property 'Style'
  of object'Colorful.Control.SearchPanel'. A Storyboard tree in a Style
  cannot specify a TargetName. Remove TargetName 'progressWheel'.</p>
  </blockquote>
  <p>ProgressWheel is the name of the object I'm trying to animate, so removing the target name is obviously NOT what I want.</p>
  <p>I was hoping to solve this in XAML using data binding techniques, instead of having to expose events and start/stop the animation through code.</p>