Rotation de grid pour jeu de carte
Bonjour,
Je souhaiterai créer un carte de jeu et au clique sur celle-ci la retourner, j'ai fait ceci :
Code:
1 2 3 4 5 6 7
| <Grid Margin="44,40,0,0" MouseLeftButtonDown="StackPanel_MouseLeftButtonDown" HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100">
<Grid.Projection>
<PlaneProjection x:Name="maRotation" RotationY="0" />
</Grid.Projection>
<Rectangle Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="100" Stroke="Black" VerticalAlignment="Top" Width="100" />
<Image HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100" Source="/MemoCarte;component/Images/Duff1.png" />
</Grid> |
Mais cela me fait pivoté ma forme mais pas retourner. Avant clique je voudrais un rectangle blanc et après le clique et une animation je voudrais l'image.
Merci de votre aide.