Skip to main content
Home Forums Silverlight Programming Programming with .NET - General DiscreteDoubleKeyFrame in code.
1 replies. Latest Post by Jim Mangaly on May 8, 2008.
(0)
Shamresh
Member
9 points
21 Posts
05-08-2008 5:36 AM |
Hi to all,
How can I create the following XAML below in code? And also what is the relationship between DiscreteDoubleKeyFrame and a TimeLine? And in the future where could I find this information?
Thanks
Sham.
Ps XAML code:
<Storyboard x:Name="SpriteAnimation" RepeatBehavior="Forever">
Jim Mangaly
Contributor
2622 points
381 Posts
05-08-2008 6:58 AM |
Do you really need to create the animation in code? You could define the animation in XAML, and control it in code as demonstrated in this article. If you really need to do this in code, check this post for an example.
The Timeline class is the base class for all animation classes including the DoubleAnimation UsingKeyFrames class.
Hope this helps,Jim (http://jimmangaly.blogspot.com/)
Please MARK the replies as answers if they answered your question