I want to make animation in Inkcanvas control like draw stroke and stroke path so it can move over t开发者_如何学编程he stroke path how ?
First grab the strokes from the InkCanvas.
Then get a GeometryPath from each stroke by calling GetGeometry() on the strokes.
After that you can use the GeometryPath in a Path animation
If you want to animate a pencil/brush along the stroke you'll need some extra calculations if you want to keep the pencil perpendicular (or at some angle) to the stroke.
精彩评论