林宜鹤

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  Silverlight

摘要:安装Silverlight 5时,如果你的VS不是英文版,那么可能会出现以下错误:Visual Studio 2010 SP1 that matches the language version of Silverlight 5 Tools must be installed before installation of Silverlight Tools can continue. 如图:解决方法:解压 Silverlight_5_Tools.exe ,用记事本打开ParameterInfo.xml 替换 1033 为2052 保存,接着 运行SPInstaller.exe ,就可以安装了。 阅读全文
posted @ 2012-02-03 16:01 林宜鹤 阅读(2423) 评论(4) 推荐(1)

摘要:Silverlight 版 票务系统v1.0 。开发环境:VS2010,SL4.0,兼容Oracle 和 MSSQL登录页:列表页:数据编辑:报表页: 阅读全文
posted @ 2012-01-15 10:02 林宜鹤 阅读(471) 评论(0) 推荐(1)

摘要:Silverlight 中 Notify 的两种常用写法,哪种更好用,你懂的。#region INotifyPropertyChangedpublic event PropertyChangedEventHandler PropertyChanged;public void Notify(string name){ if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(name));}public void Notify<T>(Expression<Func<T&g 阅读全文
posted @ 2012-01-15 09:35 林宜鹤 阅读(361) 评论(0) 推荐(1)

摘要:突然发现,Silverlight在OOB模式Closing事件有时会失效,特别是弹出窗口和导航时很容易无效。经测试以下代码可用:1. 在App.xaml.cs 定义一个全局变量:Window MainWin;2. 在Application_Startup写Closing 代码:private void Application_Startup(object sender, StartupEventArgs e) { MainWin = App.Current.MainWindow; MainWin.Closing += (sss, eee) => { var result = Messag 阅读全文
posted @ 2011-10-21 19:00 林宜鹤 阅读(347) 评论(0) 推荐(1)

摘要:OOB公网部署时必须加上数字签名才能自动更新,目前查到的方法如下:1,打开Visual Studio Tools里面的命令提示,然后运行以下命令。 makecert.exe -r -n "CN=LINYH" -b 01/01/2009 -e 12/31/2019 -sv c:\Cert\CbipSetupKey.pvk c:\Cert\CbipSetupKey.cercert2spc.exe c:\Cert\CbipSetupKey.cer c:\Cert\CbipSetupKey.spcpvkimprt -pfx c:\Cert\CbipSetupKey.spc c:\C 阅读全文
posted @ 2011-10-21 18:52 林宜鹤 阅读(1091) 评论(0) 推荐(2)