Bonjour,
Je souhaiterai créer un carte de jeu et au clique sur celle-ci la retourner, j'ai fait ceci :
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.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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>
Merci de votre aide.
Partager