您的位置:首页 > 其它

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

2009-05-12 09:45 330 查看
这篇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代替了 :-)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐