改变目标WP7的故事板

时间:2012-06-25 19:34:31

标签: windows-phone-7 storyboard

我必须更改以下代码才能使故事板与List<>中的图像一起使用而不是使用椭圆工作?

<Storyboard x:Name="sbMoveImages">
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="ellipse">
            <EasingDoubleKeyFrame KeyTime="0" Value="-1"/>
            <EasingDoubleKeyFrame KeyTime="0:0:3" Value="641"/>
            <EasingDoubleKeyFrame KeyTime="0:0:5" Value="640"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="ellipse">
            <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
            <EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:5" Value="160"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="ellipse">
            <EasingDoubleKeyFrame KeyTime="0:0:3" Value="0"/>
            <EasingDoubleKeyFrame KeyTime="0:0:5" Value="359.82"/>
        </DoubleAnimationUsingKeyFrames>
    </Storyboard>

1 个答案:

答案 0 :(得分:0)

只需更改Storyboard.TargetName即可。