16.3. Path-Based Animation
A path-based animation uses a PathGeometry object to set a property. Although a path-based animation can, in principle, be used to modify any property that has the right data type, it's most useful when animating position-related properties. In fact, the path-based animation classes are primarily intended to help you move a visual object along a path.
As you learned in Chapter 13, a PathGeometry object describes a figure that can include lines, arcs, and curves. Figure 16-8 shows an example with a PathGeometry object that consists of two arcs and a straight line segment that joins the last defined point to the starting point. This creates a closed route over which a small vector image travels at a constant rate.
Get Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.