JQuery   window、document、 body

摘要: 我电脑屏幕分辨率:1440 * 900 最大化浏览器,刷新浏览器 alert($(window).width() + " " + $(window).height()); 1423 768 alert($(document).width() + " " + $(document).height()) 阅读全文
posted @ 2012-11-08 16:26 傍晚雨 阅读(20607) 评论(0) 推荐(1) 编辑

Silverlight使用笔记

摘要: 1. ItemsSource绑定写法,此写法可为一个页面绑定多个对象 ItemsSource="{BindingQuoteItems,Source={StaticResourceQIViewModel}}"2. Style需合并到App.xaml Style合并 <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Assets/Styles.xam.. 阅读全文
posted @ 2012-10-24 16:09 傍晚雨 阅读(356) 评论(0) 推荐(0) 编辑

OOP SOLID原则

摘要: OOP SOLID原则如下: S = 单一职责原则 Single Responsibility Principle O = 开放闭合原则 Opened Closed Principle L = Liscov替换原则 Liscov Substitution Principle I = 接口隔离原则 I 阅读全文
posted @ 2012-10-24 14:56 傍晚雨 阅读(259) 评论(0) 推荐(0) 编辑

Silverlight使用问题汇总一

摘要: 最近开始使用silverlight,使用中碰到很多问题,我打算将问题备案。 使用框架:prism unity、Silverlight Ria. 1.调试:Silverlight分客户端和服务器端,如果你想debug服务器端的代码,那么需要将服务器端项目设为启动项;如果要debug客户端,那么需要将客户端设为启动项。当然,你可以将两端项目都设为启动项,我试过,好像就第一次成了,后来都有些问题。 2.启动项:如果你将SilverlightApplication1设为启动项,那么domain service即wcf是无法调用的,因为WCF并没有被host.当然,如果不使用domain ... 阅读全文
posted @ 2012-10-24 14:43 傍晚雨 阅读(391) 评论(0) 推荐(0) 编辑

创建domain serivce

摘要: 在创建domain Service 时,available context classes下拉列表只有empty domain service,如:图1图1:而没有linq to sql 或 entity framework是因为没有创建linq to sql classes 或 entity framework文件,如图2。图2:需添加相关引用,若无,请下载安装 WCF RIA Services Toolkit 阅读全文
posted @ 2012-09-25 15:02 傍晚雨 阅读(326) 评论(0) 推荐(0) 编辑

Javascript解析原理概貌

摘要: javascript解析器根据ECMAScript标准编写,属于浏览器中的一个组成部分。 阅读全文
posted @ 2012-09-19 16:33 傍晚雨 阅读(200) 评论(0) 推荐(0) 编辑

Open XML SDK 2.0

摘要: http://msdn.microsoft.com/en-us/library/bb448854http://msdn.microsoft.com/en-us/library/gg278316%28v=office.14%29http://msdn.microsoft.com/en-us/library/cc850837---how toExcel加密将想要设定的密码传入Mothed 1得到加密密码,将加密密码传给workbookPassword,即实现加密。SheetProtection wSheetProtection = new SheetProtection() { Password 阅读全文
posted @ 2012-08-28 16:20 傍晚雨 阅读(328) 评论(0) 推荐(0) 编辑