Question

I'm trying to create a WPF Shape (PolyLine) editor, which is a control that I want to use to, edit shapes in a canvas.

What the editor needs to do is to be able to display the points and lines of the shape and to move those around.

Can anyone provide me with a idea of how I can accomplish this, or a starting point? I haven't found anything related to how I could do this, so far.

OTHER TIPS

I also liked the WPF DrawTools article on CodeProject, which has a very nicely formatted set of source classes. It provides a simpler example of outline shapes - ellipse, rectangle, line, polyline and text. Unfortunately, it was deleted in 2015, as someone just pointed out to me.

A copy of the article is available through the Wayback Machine but the linked source code has been deleted along with the original article. The article includes class diagrams and enough detail to give you a good idea of the overall design.

Nowadays I think it's worth looking at Kimono Designer, although it seems to have been announced to a lot of excitement and the code hasn't been updated for a year. Note there is a WPF port, as discussed in this article and sample on GitHub.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top