I did not create the files Arc and ArcHelper this gentleman did : https://github.com/arek-kubiak/ArcControl/tree/master
And thus has allowed me to gain some time as I wont need to create an ArcControl I can just use his repo, here is what the initial Arc Control looks like:
What I currently have:
- a Circle that can drawn using the percentage value.
What I will need to do:
- Increase that percentage value to make it look like it is drawing itself
- Have an event fired when the circle percentage reach's 100% (so that i can do something with it afterwards)
Here is what my UserControl looks like:
As you can see my PercentValue starts at 1 (it could be 0 also).
Now once our UserControl has loaded all we need to is add a DispatcherTimer set the Interval and increase the Percentage Value by the amount that we want.
For my case, I have set set the Interval to 5 milliseconds and will be increasing the Percentage value by 0.45. Here is my UserControl: