DotNetEden

一个普通程序员的成长记录
posts - 440, comments - 1502, trackbacks - 13, articles - 0
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

2011年11月4日

有时需要在Silverlight项目中禁止掉默认的右键菜单,解决方法很简单,只要给根节点加上MouseRightButtonDown事件处理程序即可,代码如下:

LayoutRoot.MouseRightButtonDown += (sender,e) =>
                {
                    e.Handled=true;
                };

  

image

posted @ 2011-11-04 11:16 张荣华 阅读(157) 评论(0) 编辑

昨天在往Google Code上提交代码时遇到的小问题,记录下来以备后查。

错误描述:

SVN Commit时有错误如下:

svn: Commit failed (details follow): 
svn: Server sent unexpected return value (405 Method Not Allowed) 
in response to MKACTIVITY request for '....

解决方法

经过搜索得知,是Google Code允许用户以Http协议Update代码,但Commit时必须以Https协议。所以在SVN目录下利用Relocate功能将SVN协议从Http改为Https后就可以了。

posted @ 2011-11-04 09:32 张荣华 阅读(891) 评论(0) 编辑