Windows Phone 7中的鼠标悬停事件 [英] Mouse Over Event in Windows Phone 7

查看:86
本文介绍了Windows Phone 7中的鼠标悬停事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用一个应用程序(在WP7中),该应用程序中有一个图像列表,当我单击任何图像时,会在其上方创建其克隆/重复图像,然后将其拖放到指定的位置. br/>
图像的克隆在其MouseLeftButtonUp事件中创建.

现在,当鼠标悬停在该图像上时,有什么方法可以创建克隆.
用户不需要按下鼠标键,
当我将鼠标移至该图像上时,应创建其克隆.

有什么办法可以做到.
我尝试过VisualStateManager,但没有得到.


在此先感谢.

Hye everyone,

I m working on a application (in WP7) where i''ve a list of images and when i click on any image, its clone/duplicate image s created above it and then i can drag it and drop at some destined place.

Clone of a image is created on its MouseLeftButtonUp Event.

Now is there any way to create the clone when mouse is over that image.
User don''t need to press the mouse button,
its clone should be created as i keep/move the mouse over that image.

Is there any way to do so.
I''ve tried VisualStateManager, but i didn''t get it.


Thanks in advance.

推荐答案

如果它已经可以与MouseLeftButtonUp一起使用,那么使用MouseOver进行处理有什么区别呢?它将以相同的方式工作,但我建议避免使用它.与不同的鼠标不同,此事件甚至可能发生太多次,因为鼠标的移动不是完全由人控制的.它将使用户感到困惑,并导致许多操作员错误.

—SA
If it already works with MouseLeftButtonUp, what''s the difference if you do it using MouseOver? It would work the same way, but I would recommend to avoid it. This event, unlike distinct mouse even can happen too many times, because moving of the mouse is not completely controlled by a human. It will confuse the user and cause a lot of operator mistakes.

—SA


这篇关于Windows Phone 7中的鼠标悬停事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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