WPF、xaml Cad 或绘图应用程序示例?
我正在尝试学习 WPF 和 xaml,并正在为我的孩子编写 CAD 风格的几何应用程序。有谁知道用 VB.net 编写的现有示例吗? C# 也不错。谢谢!
编辑:
关于如何构建这样一个应用程序的任何想法/示例? TIA
I am trying to learn WPF and xaml and am writing a cad style geometry app for my kids. Does anyone know of an existing example written in VB.net? C# is fine as well. Thanks!
EDIT:
Any thoughts/examples on how to structure such an app? TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它可能比你想象的更简单。如果您以前有线性代数和 3-D 到 2-D 投影等内容的经验,那就更简单了。
看一下这个介绍性教程,了解 WPF 处理 3-D 内容的方式和简单程度:
http://www.wpftutorial.net/IntroductionTo3D.html
It might be simpler than you think. If you have previous experience with stuff like linear algebra and 3-D to 2-D projections, even simpler.
Take a look at this intro tutorial go get a taste for what and how simple WPF can be to treat 3-D stuff:
http://www.wpftutorial.net/IntroductionTo3D.html
我的第一步是创建一个自定义画布,其中包含保存和绘制形状的功能。这是应用程序的关键部分。需要实现诸如网格、捕捉边缘之类的东西。
然后我会研究你的孩子可能画的形状范围,正方形、长方形、圆形,诸如此类。
决定文档格式很重要,因为它将在一定程度上帮助您设计一些代码。使用 XML 格式将有利于序列化和其他事情。
然后开始构建前端、工具栏等。
知道从哪里开始有点棘手,但我会从自定义画布开始。这是最重要的部分,如果您能够高效且有效地使其发挥作用,其余部分就会更容易。
只是一些想法供您参考:)
My first step would be to create a custom canvas that contains the ability to hold and draw shapes. This is the critical part of the application. Things like a grid, snapping to edges will need to be implemented.
Then i would look into the range of Shapes that your kids might draw, squares, rectangles, circles, things like that.
Deciding on a document format is important as it will partially help you design some of your code. Using an XML format will be good for serialization and other things.
Then start building the front end, toolbars, etc.
It's a bit tricky to know where to start, but I would start with the custom canvas. This is the most important part and if you can get this functioning efficiently and effectively, the rest will be easier.
Just some thoughts for you to work on :)
monoworks 也许就是您正在寻找的...
在这里找到它:http://monoworksproject.org/
monoworks maybe the one you are looking for...
Find it here: http://monoworksproject.org/