Come learn how Cynergy Systems has been translating skills in Flash/Flex development to Microsoft Silverlight 2 with an eye for great design. Learn how to create custom animation techniques, apply popular Flash tricks to Silverlight, and more.
2. Tag based animations vs. Procedural Code
What we’re going to go over
We will start where tag based animations end.
Dynamically creating visual elements.
How to manipulate them with C# as painlessly
as possible.
We’re going to jump straight into code...
3.
4. Take away points
Using a dynamic storyboards as your
onEnterFrame
If ( count++ < killSwitch) sb.Begin();
Using a UserControl as a MovieClip
Adding that X and Y property is a life saver.
The Easing Equation
bob.X += (mouse.X – bob.X)*.12;
Questions?
5.
6. Take away points
There is no removeMovieClip() equivalent
from inside the userConrol.
(this.Parent as Canvas).Children.Remove(this);
Pro’s and Con’s of this approach
Look into registering events up to the parent
Questions?
7.
8. Take away points
System.Windows.Interop.Content
Looping through the children
foreach (dot d in balls.Children)
Questions?
9.
10. Take away points
WebClient and the BitmapImage
Skip the WebClient for fast and easy
Uri URI = new Uri(fileName, UriKind.Relative);
BitmapImage bi = new BitmapImage(URI);
Questions?