I am attempting to create an animated Bezier curve in WPF, which I intend to make "living" by smoothly and slowly animating end points and control points. I do not want any of the points to follow an obviously predictable path like a simple ellipse or circle.
I have had success in other simpler animations by using two different DoubleAnimations, animating for example Canvas.Top and Canvas.Left separately.
But in a Bezier segment, the control and end points are given as Point() instances, and I cannot seem to figure out how to animate these Point instances' X- and Y coordinates separately. Although there is a PropertyPath for (e.g.) BezierSegment.ControlPoint2, there doesn't seem to be one for that point's X coordinate.
I've looked at implementing my own custom point animation by inheriting from PointAnimationBase, but it is difficult navigating the documentation to understand how it all ties together - and there aren't very many examples out there.
Is a custom animation inheriting from PointAnimationBase the correct way to go, and how do I tie it into the BezierSegment's control points? Or should I look at something completely different to achieve the effect?