我试图在不停止整个故事板的情况下清除主故事板。 不幸的是,这个错误正在迅速发生。有没有其他办法解决这个问题?
“操作在活动的动画或故事板上无效。必须先停止根故事板。”
这是我的代码:
sbPacman.Completed += (s, e) =>
{
if (!MovementHalted)
{
sbPacman.Children.Clear(); //Error occurs each time I try to clear the storyboard
this.ProcessNextAnimation(snailAnimationQueue, sbPacman);
}
};
提前谢谢。