Animate path in UWP

In a UWP application, I want to animate paths (e.g. composed from Bézier segments) as if it was drawn with a pen, i.e. in the example

<Path x:Name="path" Stroke="Black" Data="M 100,200 C 100,25 400,350 400,175" />

it should start incrementally drawing a Bézier segment from (100, 200) to (400, 175) using the given control points. TBH, I am completely lost as I have not found a property on Path that could be used as control variable. I first thought I could build something using PointAnimationUsingPath, but this is not available in UWP. Is there any way to achieve this, preferably without evaluating the Bézier curve manually in key frames?



Read more here: https://stackoverflow.com/questions/64955715/animate-path-in-uwp

Content Attribution

This content was originally published by Christoph at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: