在wp7 silverlight中多次旋转同一图像

在wp7 silverlight中多次旋转同一图像,silverlight,windows-phone-7,animation,image-rotation,Silverlight,Windows Phone 7,Animation,Image Rotation,我使用此功能旋转图像: public void rotateMe(Image img, double duration, int degrees, double xPoint, double yPoint) { Duration Time_duration = new Duration(TimeSpan.FromSeconds(duration)); Storyboard MyStory = new Storyboard(); My

我使用此功能旋转图像:

    public void rotateMe(Image img, double duration, int degrees, double xPoint, double yPoint)
    {
        Duration Time_duration = new Duration(TimeSpan.FromSeconds(duration));
        Storyboard MyStory = new Storyboard();
        MyStory.Duration = Time_duration;

        DoubleAnimation My_Double = new DoubleAnimation();
        My_Double.Duration = Time_duration;
        MyStory.Children.Add(My_Double);

        RotateTransform MyTransform = new RotateTransform();
        Storyboard.SetTarget(My_Double, MyTransform);
        Storyboard.SetTargetProperty(My_Double, new PropertyPath("Angle"));

        My_Double.To = degrees;
        img.RenderTransform = MyTransform;
        img.RenderTransformOrigin = new System.Windows.Point(xPoint, yPoint);

        MyStory.Begin();

        MyStory.Completed += new EventHandler(MyStory_Completed);
    }
问题是,当我再次尝试朝相反方向旋转它时,它会旋转原始图像,而我想旋转新图像


有什么想法吗?

你试过了吗:1)将“填充行为”设置为“保持”,2)将“返回”设置为“->0?现在我试一下,然后告诉你。谢谢。事实上,我没有让它工作!