How to draw an arc in winRT with animation?

后端 未结 4 2054
梦毁少年i
梦毁少年i 2021-01-03 02:43

I am a newbie to WinRT and Blend and I need to draw digits 1, 2 etc with drawing effect in my WinRT application. The requirement is like the application will be drawing the

4条回答
  •  情书的邮戳
    2021-01-03 03:18

    Another general solution for drawing an arc that would allow to use an independent animation and so would possibly run smoother would be to use two overlaid ellipses that are clipped with a RectangleGeometry Clip and animate the Transform of the clip to reveal the arc gradually. You would need two of those to have the beginning and end of the arc to have their caps (ends) at arbitrary angles.

    It would also be an easy solution to quickly simulate drawing of an arbitrary shape or element, including a digit.

提交回复
热议问题