I’m clipping a Canvas I have with a diamond-shaped PolyLineSegment in a PathGeometry. I’m trying to animate the PointCollection of it though, and cannot seem to resolve the TargetProperty. This is the only other reference all of Google found that is pretty much what I’m trying to do and the the same PropertyPath: http://forums.silverlight.net/forums/p/22239/78225.aspx
Is it even possible to get a Point from a PointCollection in order to change it’s values in an animation?
Unfortunately I don’t think that is possible to animate the Polyline.Points…
Those points object are from “System.Windows.Point” and the problem is that their “X” and “Y” properties are not dependency properties. Unfortunately there is no way to animate a property that is not a dependency property with a DoubleAnimation.
In the example you provided the animation is based on PathFigure Segment (that have dependency properties) and not a System.Windows.Point.
I would try to avoid using the PolyLineSegement in your Path if you want to animate those.