按用户创建矩形并保存其相对位置 [英] create Rectangle by user and save its Relative position

查看:74
本文介绍了按用户创建矩形并保存其相对位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





首先 - 我需要我的项目在WPF ..它是我的第一个。

(我主要开发网络系统)



我有一个带有网格的表格,将窗口分成2行/ 1列。

在第二行,我添加了一个带有背景图像的canvan,显示了几个项目,每个项目下面都有条形码。



当用户(从组a中搜索图像上的条形码,它假设被标记,所以作为开始,其他用户组(经理组)需要设置图像细节,这是我正在拥有的部分问题



我需要做的是:



打开窗口的用户,假设能够创建一个标记项目条形码的矩形。

他还假设能够改变矩形的宽度/高度。

完成后,点击按钮我想保存相对位置窗口上的矩形 - 它必须是相对位置,因为用户(来自组a)可以稍后更改窗口高度/宽度,并且矩形需要保持在图像上的相同位置。 ..



有人能给我一个起点或任何帮助吗?

解决方案

听起来非常像我以前做过的事情:

WPF-Drawing Canvas Control [ ^ ]

Hi,

First of all - I need my project to be in WPF .. and it''s my first one.
(I mostly develop web systems)

I have a form with a grid in it, that split the window to 2 rows / 1 column.
On the second row I added a canvan with a background image that display several items and there''s a barcode below each item.

When a user (from group "a") search a barcode on the image, it suppose to be marked, so as a start, other group of users ("manager" group) need to set the image details and this is the part I''m having problem with

what I need to do is that:

The user that opens the window, suppose to be able to create a rectangle that marks a barcode of an item.
He also suppose to be able to change the width/height of the rectangle.
After he finishs, by clicking a button I want to save the relative position of the rectangle on the window - it must be a relative position, since the user (from group "a") can change later the window height/width and the rectangle needs to stay at the same place on the image...

Can anyone give me a start point or any kind of help?

解决方案

It sound very much like something I have done before:
WPF-Drawing Canvas Control[^]


这篇关于按用户创建矩形并保存其相对位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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