如何创建 WPF 形状编辑器?

发布于 2024-07-07 16:13:53 字数 1557 浏览 7 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ゝ杯具 2024-07-14 16:13:53

我还喜欢 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文