2

What is the best way to create a frame by frame animation composed of png files on windows phone 7 application (silverlight)

This can be easily done in Android using AnimationDrawable and in iOS using UIView animationImages.

Gu1234
  • 3,466
  • 3
  • 23
  • 24

2 Answers2

3

You can use a storyboard to animate the source property of an Image control, you can find some example code Candle Tutorial

Nigel Sampson
  • 10,549
  • 1
  • 28
  • 31
3

This article discusses 4 ways how to do animations:

  • Storyboard-based animations created in a) Xaml, b) code
  • Per-frame animations
  • Timer-based animations

There is no "best way", i.e. the answer depends on your goal. Basically

  • Storyboard animations are nicest (highest frame rate), take most CPU cycles (because they make use of a privileged thread), support only primitive property types. You also have to learn respective API that can be used either in Xaml or in the code.
  • The other 2 types provide less fluent, but more CPU-effective approach. You have no limitations, but also no support - in other words you have to do everything yourself. (Which is often easier than using the Storyboard language.)
Jan Slodicka
  • 1,505
  • 1
  • 11
  • 14