用户操作
[留言]  [发消息]  [加为好友] 
订阅我的博客
XML聚合    FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
jameszhou的公告
<a href="http://www3.clustrmaps.com/counter/maps.php?url=http://blog.csdn.net/jameszhou" id="clustrMapsLink"><img src="http://www3.clustrmaps.com/counter/index2.php?url=http://blog.csdn.net/jameszhou" style="border:0px;" alt="Locations of visitors to this page" title="Locations of visitors to this page" id="clustrMapsImg" onError="this.onError=null; this.src='http://www2.clustrmaps.com/images/clustrmaps-back-soon.jpg'; document.getElementById('clustrMapsLink').href='http://www2.clustrmaps.com'" /> </a> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2352414-1"; urchinTracker(); </script> <br/> <br/> <script type="text/javascript"><!-- google_ad_client = "pub-0325102277263406"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text"; //2007-09-07: csdnblog google_ad_channel = "0441812933"; google_color_border = "FFFFFF"; google_color_bg = "B3B3B3"; google_color_link = "000033"; google_color_text = "000000"; google_color_url = "FFFFFF"; google_ui_features = "rc:10"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
文章分类
链接
Colleague & Microsoft Team System MVP: Wilson Wu(RSS)
Old Blog - Runner on .NET
存档

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

发表于 @ 2009年05月12日 09:45:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:Singleton, Generic Singleton and Silverlight Reflection 限制 | 新一篇:布尔变量 - simple is beautiful

  • 发表评论
  • 评论内容:
  •  
Copyright © jameszhou
Powered by CSDN Blog