微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Silverlight - 鼠标右键及左键双击事件

这篇blog列出了 Silverlight (3 beta) 与 WPF的比较

 

其中提到了 Silverlight中没有鼠标右键事件,因为:

No Right Click Event:

So no context menu triggered by Right Click.
Some hacks exists but are not recommended due to the need to put the SL plug-in in windowless mode,introducing performance issue.

 

一个Silverlight项目中,使用了Telerik的RadTreeVeiw,该项目的UI仿照客户的原有的Win Form程序,Win From中使用了TreeView的双击事件来打开一个新窗口,本想依照实现在Silverlight项目中,却发现RadTreeView没有double click event! 这个应该不难实现,设置javascript都可实现double click event,难道是Telerik控件的设计疏漏?

 

找到一篇blog,似乎可以找到一个可能的答案 - Double Click is a bad design:

 

The omission of a double-click event wasn't because of a technical limitation – the omission is a deliberate design decision. Silverlight is built for the web,and many consider double-clicking on the web to be a usability no-no.

 

 

Silverlight has some wonderful potential. Just remember to innovate – don't aggravate.

 

还没有innovate一个好的替代方法,先用single click代替了 :-)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐