相关疑难解决方法(0)

适用于Windows Mobile的Silverlight中的Storyboard.GetTarget

我有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来获得相同的功能?

c# silverlight wpf windows-phone-7

2
推荐指数
1
解决办法
1785
查看次数

标签 统计

c# ×1

silverlight ×1

windows-phone-7 ×1

wpf ×1