8
Có sự kiện nào kích hoạt khi WPF Animation kết thúc không?Có sự kiện nào kích hoạt khi hoạt ảnh WPF kết thúc không?
void HideDefaultScreenImageTimer_Tick(object sender, EventArgs e)
{
HideDefaultScreenImageTimer.Stop();
var doubleAnimation = new DoubleAnimation(1, 0, new Duration(TimeSpan.FromSeconds(0.45)));
DefaultScreenImage.BeginAnimation(UIElement.OpacityProperty, doubleAnimation);
// I need some event when an animation ENDS and within that event I want to remove
// Image (DefaultScreenImage) from Canvas.
MainCanvas.Children.Remove(DefaultScreenImage);
}