How to create a WPF form editor?

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

What the editor should do is display the points and lines of the shape and move them around.

Can someone give me an idea of โ€‹โ€‹how I can do this, or a starting point? I have not yet found anything related to how I can do this.

+7
c # editor geometry wpf
source share
2 answers
+13
source share

I also liked the WPF DrawTools article on CodeProject, which has a very well formatted set of source classes. It provides a simpler example of contour shapes โ€” an ellipse, a rectangle, a line, a polyline, and text. Unfortunately, it was removed in 2015, as someone just pointed me out.

A copy of the article is available through the Wayback Machine , but the associated source code has been removed along with the original article. The article presents class diagrams and is detailed enough to give you an idea of โ€‹โ€‹the overall design.

Currently, I think it's worth a look at Kimono Designer , although it seems like it was announced for a lot of excitement, and the code has not been updated for a year. Note that there is a WPF port, as discussed in this article and sample on GitHub .

+1
source share

All Articles