`
ribishuangba
  • 浏览: 291962 次
文章分类
社区版块
存档分类
最新评论

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代替了 :-)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics