Storyboard.GetTarget in Silverlight für Windows Mobile
Ich habe ein Problem mit der WP7-App. Ich versuche, WP7-App aus WPF-Beispielcode zu schreiben.
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);
Es scheint, dass es keine ClockGroup-Klasse gibt und Storyboard nicht über die GetTarget-Methode verfügt (was etwas seltsam ist, da es die SetTarget-Methode gibt). Gibt es einen Hack, um die gleiche Funktionalität zu bekommen?