I am using a Control Template in a resource dictionary and have a trigger :
<Grid.Triggers>
<EventTrigger RoutedEvent="Loaded" x:Name="LoadedStoryboard">
<BeginStoryboard x:Name="storyboard">
<Storyboard FillBehavior="Stop">
<DoubleAnimation Storyboard.TargetName="translateTransform" Storyboard.TargetProperty="X" From="0" To="500" Duration="0:0:3" BeginTime="0:0:5" />
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:2" BeginTime="0:0:5" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Grid.Triggers>
This trigger does what it’s supposed to do on it’s first iteration but the animation fails to run from second call.
FillBehavior=”Stop” is supposed to reset the storyboard and as i saw, it does bring the control to it’s original state yet the animation does not run on second call.
Divesh Shetty is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.