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.
发布评论
评论(2)
上有关于此问题的一系列很好的文本
CodeProject WPF 图表设计器 - 第 1 部分
WPF 图表设计器 - 第 2 部分
WPF 图表设计器 - 第 3 部分< /a>
WPF 图表设计器 - 第 4 部分
There is good series of texts about this on CodeProject
WPF Diagram Designer - Part 1
WPF Diagram Designer - Part 2
WPF Diagram Designer - Part 3
WPF Diagram Designer - Part 4
我还喜欢 CodeProject 上的 WPF DrawTools 文章,其中有一组格式非常好的源类。 它提供了一个更简单的轮廓形状示例 - 椭圆形、矩形、直线、折线和文本。 不幸的是,正如有人刚刚向我指出的那样,它在 2015 年被删除了。
文章的副本是可通过 Wayback Machine 获取,但链接的源代码已与原始文章一起删除。 本文包含类图和足够的细节,可以让您很好地了解整体设计。
如今,我认为值得一看 Kimono Designer,尽管它的宣布似乎引起了很多人的兴奋,但代码尚未发布更新一年了。 请注意,有一个 WPF 端口,如本文和GitHub 上的示例。
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.