Timeline.Completed Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Occurs when the Storyboard object has completed playing.

Namespace: System.Windows.Media.Animation
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.


Public Event Completed As EventHandler
public event EventHandler Completed
<timeline Completed="eventhandler"/>


If this timeline is the root timeline of a timeline tree, it has completed playing after it reaches the end of its active period (which includes repeats) and all its children have reached the end of their active periods. If this Storyboard is a child Storyboard, it is considered to have completely finished playing when the root timeline of the timeline tree to which it belongs reaches the end of its active period and all its child timelines have finished playing.

Stopping a timeline does not trigger its completed event, but skipping it to its fill period does.


The following example fires the Completed event after a Storyboard ends.

  Width="200" Height="200"
    <EventTrigger RoutedEvent="Canvas.Loaded">
        <Storyboard x:Name="ColorStoryboard" Completed="onCompleted">

          <!-- Animate the background color of the canvas from red to green
               over 4 seconds. -->
          <ColorAnimation BeginTime="00:00:00" Storyboard.TargetName="Page" 
           From="Red" To="Green" Duration="0:0:4" />


Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


Timeline Class

System.Windows.Media.Animation Namespace

Other Resources

Animations, motion, and output for Windows Phone