0

我必须对以下代码进行哪些更改才能使情节提要与 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>
4

1 回答 1

0

只是改变Storyboard.TargetName应该就足够了。

于 2012-06-26T11:28:52.557 回答