在WPF画布上绘制多个矩形 [英] Draw multiple rectangles on WPF canvas

查看:124
本文介绍了在WPF画布上绘制多个矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过在WPF画布上绘制多个矩形来表示电路板上组件的布局(如果画布是最佳容器)。组件的尺寸和几何形状保持在已经开发的类中。任何人都可以建议在后面的代码中绘制形状的方法,或指向类似的项目?谢谢。

I want to represent the layout of components on a circuit board by drawing multiple rectangles on a WPF canvas (if canvas is the best container). Sizes and geometries of components are maintained in a class already developed. Can anyone suggest an approach to drawing shapes in the code behind, or point to a similar project? Thanks.

推荐答案

阅读这个 [ ^ ]了解绘图基础知识与WPF。另请阅读 [ ^ ]文章。
Read this[^] for the basics on drawing with WPF. Also read this[^] article.


这篇关于在WPF画布上绘制多个矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆