我有WP7应用程序的问题.我正在尝试从WPF示例代码编写WP7应用程序.
private void storyboard_Completed(object sender, EventArgs e)
{
ClockGroup clockGroup = (ClockGroup)sender;
// Get the first animation in the storyboard, and use it to find the
// bomb that's being animated.
DoubleAnimation completedAnimation = (DoubleAnimation)clockGroup.Children[0].Timeline;
Bomb completedBomb = (Bomb)Storyboard.GetTarget(completedAnimation);
Run Code Online (Sandbox Code Playgroud)
似乎没有ClockGroup类,而Storyboard没有GetTarget方法(这有点奇怪,因为有SetTarget方法).是否有一个hack来获得相同的功能?