对于WPF的拖放,例如Windows桌面,例如Windows拖放桌面图标 [英] Drag and drop for WPF like windows desktop like windows dragging and dropping desktop icons

查看:435
本文介绍了对于WPF的拖放,例如Windows桌面,例如Windows拖放桌面图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在设计具有以下特点的项目,
1.从网络摄像头捕获图像,然后将其传送到图片框或面板.
2.捕获的图像将作为背景图像.
3.我需要在背景图像上拖放另一个图像(由网络摄像头捕获).
像这样http://www.ray-ban.com/india/science/virtual-mirror
我有珠宝的裁剪图像
这是用于珠宝店桌面的.
感谢您提供与主题代码相关的任何帮助.

Hello,
I am designing project which has following specificity,
1.Capture image from web cam and transfer it a picture box or panel.
2.The captured image will be the background image.
3.I need to drag and drop another image on the background image(which was captured by web cam).
Like this http://www.ray-ban.com/india/science/virtual-mirror
I have the cropped image of the jewellery
This is for a jewelery store desktop .
Any help to relating code for topics is appreciated.
Thanking in advance.

推荐答案

可能最好建议您使用WPF Thumb类:

http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.thumb.aspx

上有一篇非常好的文章(通过在搜索框中找到一个简单的文章搜索即可找到的,您可以在屏幕的右上角看到它,我建议以后再使用它,因为这样可以更快地发布问题; p)使用拇指控制层和装饰层,位于以下位置:

WPF图表设计器:第1部分

这应该涵盖了您需要了解的所有内容
You will probably be best advised to use the WPF Thumb class:

http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.thumb.aspx

There is a very good article (which was found using a simple article search in the search box you can see towards the top right of your screen, i suggest using it in future before posting a question as its a lot quicker ;p) on the use of both the thumb control and adorner layers, located here:

WPF Diagram Designer: Part 1

That should cover everything you need to know


首先,非常感谢您将我引向示例.我试图从内容控件中删除选择器,就像在装饰器中执行的选择器一样.例子.我似乎做不到.任何想法,你怎么做.在拇指示例中,从内容控件中删除选择器.
First of all thanks a lot for directing me to the example.I am trying to remove the selector from the content control like the one executed in the adorner example. I cant seem to do it. Any idea how you can do that. Remove the selector from the content control in the thumb example.


这篇关于对于WPF的拖放,例如Windows桌面,例如Windows拖放桌面图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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