I am building a small Silverlight application. In my application I need to draw lines, similar to what's shown in the attached image.
I understood that the best way to draw the arched connecting lines (green ones) would be with Bezier curves.
My question is, how do I animate the drawing of the lines (getting them to start from a starting (X,Y) coordinate, to the target ones)?
Attached Image:
I've spent a bit of time playing with this and it is possible. The trick is that you don't animate the path. Instead, you initially clip the path to a bounding area of zero dimension and then you essentially animate the height and width of the clipping area. The final effect looks like the path is being animated from Point A to Point B.
Take a look at the XAML sample below: