我正在使用DoubleAnimation
而不是使用StoryBoard
,并且我正在尝试将事件处理程序应用于完成时(否则,在动画结束之前,我要做的代码就会发生)。
我已经使用了:
da = new DoubleAnimation(40,20, new Duration(TimeSpan.FromSeconds(2)));
((PerspectiveCamera)_Main3D.Camera).
BeginAnimation(PerspectiveCamera.FieldOfViewProperty, da);
da.Completed += new EventHandler(Story_Completed);
然而,这种情况从未发生。