WPF 学习笔记-判断动画完成的画件

直接记例子了。。。所属的父类什么的还记不住。

DoubleAnimationUsingKeyFrames dakX = new DoubleAnimationUsingKeyFrames();
dakX.Completed += new EventHandler(detailbind_event); //就是这个
dakX.Duration = new Duration(TimeSpan.FromMilliseconds(1000));

private void detailbind_event(object sender, EventArgs e)
{
detailbind();
}

原文地址:https://www.cnblogs.com/hayywcy/p/2283151.html