Mega Code Archive
Receive Notification When an Animation Completes
//File:Window.xaml.cs
using System;
using System.Windows;
namespace WpfApplication1
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void Storyboard_Completed(object sender, EventArgs e)
{
MessageBox.Show("Storyboard complete.", "WpfApplication1");
}
private void ParallelTimeline_Completed(object sender, EventArgs e)
{
MessageBox.Show("ParallelTimeline complete.", "WpfApplication1");
}
private void Animation1_Completed(object sender, EventArgs e)
{
MessageBox.Show("Animation 1 complete.", "WpfApplication1");
}
private void Animation2_Completed(object sender, EventArgs e)
{
MessageBox.Show("Animation 2 complete.", "WpfApplication1");
}
private void Animation3_Completed(object sender, EventArgs e)
{
MessageBox.Show("Animation 3 complete.", "WpfApplication1");
}
}
}