Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to draw circle on Inkcanvas

$
0
0

Dear all,

I have an InkCanvas on which I need to draw a circle with finger or mouse. I have read that I need to create a class the inherit from Stroke in order to draw custom shape as stroke but do not really now how to draw that circle in following manner :

When I hold my mouse or finger at a specific location and start to move finger or mouse in any direction, the initial touch position should represent the outside edge of the circle. Then as soon as I move mouse or finger I can see my circle gets drawn

Any sample how to do this ?

regards


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>