Animation Windows Phone emulator不显示任何动画/移动

Animation Windows Phone emulator不显示任何动画/移动,animation,windows-phone-7.1,emulation,expression-blend,Animation,Windows Phone 7.1,Emulation,Expression Blend,我在Blend4中准备了最简单的应用程序,我将文本框放入添加的故事板keyframe1中,移动文本框并添加另一个关键帧。动画在Blend4中工作,我在情节提要上按play,文本框移动。我运行了模拟器,但它没有运行。我甚至运行了我老师的应用程序,它也不会动画(应该) 我该怎么做才能让它运行呢 如何从代码开始动画?? F.E.翻转动画: XAML 看得见的 看得见的 启动动画的CS代码: VisualStateManager.GoToState(这是“展示”,正确) 我怎么开始呢?我在blend

我在Blend4中准备了最简单的应用程序,我将文本框放入添加的故事板keyframe1中,移动文本框并添加另一个关键帧。动画在Blend4中工作,我在情节提要上按play,文本框移动。我运行了模拟器,但它没有运行。我甚至运行了我老师的应用程序,它也不会动画(应该)

我该怎么做才能让它运行呢


如何从代码开始动画??
F.E.翻转动画:

XAML


看得见的
看得见的
启动动画的CS代码:


VisualStateManager.GoToState(这是“展示”,正确)

我怎么开始呢?我在blend的故事板中创建了它,它应该会运行。因为我理解了动画必须从某个事件开始。在blend U运行动画手册中,按下播放按钮。因此,动画必须如何以及何时在amulator中启动。本文可以帮助您查看这个示例。
 <VisualStateManager.VisualStateGroups>
        <VisualStateGroup x:Name="VisualStateGroup">
            <VisualState x:Name="ShowBack" >
                <Storyboard >
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)" Storyboard.TargetName="FrontCover">
                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="FrontCover">
                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="90"/>
                    </DoubleAnimationUsingKeyFrames>
                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="BackCover">
                        <DiscreteObjectKeyFrame KeyTime="0:0:0.5">
                            <DiscreteObjectKeyFrame.Value>
                                <Visibility>Visible</Visibility>
                            </DiscreteObjectKeyFrame.Value>
                        </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="BackCover">
                        <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="90"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationZ)" Storyboard.TargetName="FrontCover">
                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                </Storyboard>
            </VisualState>

            <VisualState x:Name="ShowFront" >
                <Storyboard >
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)" Storyboard.TargetName="BackCover">
                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="BackCover">
                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="90"/>
                    </DoubleAnimationUsingKeyFrames>


                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="FrontCover">
                        <DiscreteObjectKeyFrame KeyTime="0:0:0.5">
                            <DiscreteObjectKeyFrame.Value>
                                <Visibility>Visible</Visibility>
                            </DiscreteObjectKeyFrame.Value>
                        </DiscreteObjectKeyFrame>
                    </ObjectAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="FrontCover">
                        <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="90"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationZ)" Storyboard.TargetName="BackCover">
                        <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                        <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                    </DoubleAnimationUsingKeyFrames>
                </Storyboard>
            </VisualState>


        </VisualStateGroup>
    </VisualStateManager.VisualStateGroups>


<Image x:Name="FrontCover"   Source="{Binding TitleInfo.front_cover.Image}"    HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="None" Margin="5">
                            <Image.RenderTransform>
                                <CompositeTransform/>
                            </Image.RenderTransform>
                            <Image.Projection>
                                <PlaneProjection/>
                            </Image.Projection>
                                                               </Image>
                            <Image x:Name="BackCover"  Source="{Binding TitleInfo.back_cover.Image}"   HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="None" Margin="5" Visibility="Collapsed"  >
                            <Image.RenderTransform>
                                <CompositeTransform/>
                            </Image.RenderTransform>
                            <Image.Projection>
                                <PlaneProjection/>
                            </Image.Projection>

                            </Image>