I've recently started learning WP8.1 and I'm currently trying to play around with animations.
What I'm trying to do is animating a splash screen like a book page: coming from the back and then, when it's covering the whole screen and you touch it, continuing to rotate as if you were turning a book page. The first part of the animation is OK but I don't know why the second part (a second storyboard) is not animated. After a bit, the rectangle just takes the last position it should take without being animated (that's ugly!).
Here are my storyboards (noting complicated):
<Storyboard x:Name="EndgameSplashInStoryboard">
<!--<DoubleAnimation Duration="0:0:0.3" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="EndgameSplashGrid" d:IsOptimized="True"/>-->
<DoubleAnimation Duration="0:0:0.3" By="70" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="EndgameSplashGrid" d:IsOptimized="True"/>
</Storyboard>
<Storyboard x:Name="EndgameSplashOutStoryboard">
<!--<DoubleAnimation Duration="0:0:0.3" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="EndgameSplashGrid" d:IsOptimized="True"/>-->
<DoubleAnimation Duration="0:0:0.3" By="70" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="EndgameSplashGrid" d:IsOptimized="True"/>
</Storyboard>
I commented the opacity animations to simplify my animations. Here is the content that I want to animate:
<Grid x:Name="EndgameSplashGrid">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.Projection>
<PlaneProjection x:Name="EndgameSplashProjection" RotationY="-70" CenterOfRotationX="0"/>
</Grid.Projection>
<Rectangle x:Name="EndgameSplashRectangle" Grid.RowSpan="2" Fill="{StaticResource PhoneAccentBrush}" Tapped="EndgameSplashRectangle_Tapped"/>
<TextBlock x:Name="EndgameSplashText" Grid.Row="0" Text="victoire!" Style="{StaticResource EndgameSplashText}"/>
<TextBlock x:Name="EndgameSplashSubtext" Grid.Row="1" TextWrapping="Wrap" Style="{StaticResource EndgameSplashSubtext}"
Text="Félicitations, vous avez trouvé le nombre en 7 essais :-)"/>
</Grid>
If someone can see why this happens it would be very helpful :) Thank you, have a nice day!