如何在完成后清除WPF故事板而不停止故事板(METRO APP)?

时间:2013-06-04 03:43:04

标签: c# visual-studio-2012 windows-store-apps

我试图在不停止整个故事板的情况下清除主故事板。 不幸的是,这个错误正在迅速发生。有没有其他办法解决这个问题?

“操作在活动的动画或故事板上无效。必须先停止根故事板。”

这是我的代码:

sbPacman.Completed += (s, e) =>
            {

if (!MovementHalted)
                {

                    sbPacman.Children.Clear(); //Error occurs each time I try to clear the storyboard

                    this.ProcessNextAnimation(snailAnimationQueue, sbPacman);
                }
            };

提前谢谢。

0 个答案:

没有答案