在 WPF 中绘制场地平面图的最佳实践
Best practice to draw site plan in WPF
我正在尝试创建一个 WPF
应用程序,它提供了绘制站点计划之类的东西的可能性。用户可以 drag and drop
从对象面板到此计划的预定义对象,调整大小和旋转它们或创建和保存自己的对象。我应该使用什么方法来获得它?
根据您所说的将 预定义对象 放入另一个对象,一种可能是使用 Canvas 控件 。
这里有一个非常简单的 tutorial about the Canvas Panel and also the reference to the canvas class ,它指出:
Defines an area within which you can explicitly position child elements by using coordinates that are relative to the Canvas area.
希望这就是您要找的。
我正在尝试创建一个 WPF
应用程序,它提供了绘制站点计划之类的东西的可能性。用户可以 drag and drop
从对象面板到此计划的预定义对象,调整大小和旋转它们或创建和保存自己的对象。我应该使用什么方法来获得它?
根据您所说的将 预定义对象 放入另一个对象,一种可能是使用 Canvas 控件 。 这里有一个非常简单的 tutorial about the Canvas Panel and also the reference to the canvas class ,它指出:
Defines an area within which you can explicitly position child elements by using coordinates that are relative to the Canvas area.
希望这就是您要找的。