I've got a control that is mainly comprised of an image and a button. I want to display the image meta data on the back of the image and have the control flip horizontally when the button is pressed:
i.e.
Click the "info" button...
Rotate the image 180 degs around the axis...
Show "back" of image with meta data (or whatever really).
Obviously when the red "close" button is clicked, the image rotates around the final 180 degs so that the image is showing again.
I've not done any 3D really in XAML, but I can't see why this would be too complex...
It can be done without 3D. ScaleEffect
with changing horizontal scale from 1
to -1
has the same visual effect:
<Image RenderTransformOrigin="0.5,0.5">
<Image.RenderTransform>
<ScaleTransform ScaleX="-1" />
</Image.RenderTransform>
</Image>
You can animate ScaleX
property to get rotating effect. You should also change it's Viisibility from Visible
to Hidden
and vice versa. To make image disappearing after rotating 90 degrees. At the same time back panel should become visible.