Can I apply transitions for images in my wp7 application? I have a set of images. Can I create transition for these images like page transition?
You can apply transition on any ui element.
//XAML
<Image Name="img"
Source="image.JPG"></Image>
//C# put this code on any event like on a button click.
RotateTransition rotatetransition = new RotateTransition();
rotatetransition.Mode = RotateTransitionMode.In180Counterclockwise;
ITransition transition = rotatetransition.GetTransition(img);
transition.Completed += delegate { transition.Stop(); };
transition.Begin();
This will apply transition to an image
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.