In a UserControl I have a Storyboard for an animation that must use Storyboard.TargetName.
I want to start/stop the animnation via a DataTrigger.
A DataTrigger can be added to a Style.
But: A Storyboard tree in a Style cannot specify a TargetName.
And: Triggers collection members must be of type EventTrigger.
Therefore I cannot add the DataTrigger to UserControl.Triggers.
What should I do (in terms of solving the problem)?
Storyboard
, theDataTrigger
and the two UI elements involved. – Sheridan