随笔分类 -  Silverlight,WPF

摘要:前边一篇文章中,说了一下WCF和Asp.net的session共享,现在实现Silverlight的过期退出和WCF服务session失效的同步方案。Silverlight的bussiness模板中已经包含了超时认证的部分,现作为借鉴,实现了WCF服务端session失效和Silverlight过期的同步。1. 在web.config中设置session过期的时间: <sessionState mode="InProc" stateConnectionString= "tcpip=127.0.0.1:42424" cookieless=" 阅读全文
posted @ 2011-10-31 16:19 kntao 阅读(370) 评论(0) 推荐(0) 编辑
摘要:silverlight的mvvm模式框架有,MVVM Light:http://mvvmlight.codeplex.comCaliburn:http://caliburn.codeplex.com/Prism:http://compositewpf.codeplex.com/其中MVVMLight是一个轻量级框架,大家可以参考。下面重点说一下View与Command的原理及使用。大家可以参照源代码:1.每一个ViewModel都继承ViewModelBase类:大致的源代码是:using System; using System.ComponentModel; using System.Li 阅读全文
posted @ 2011-10-28 18:27 kntao 阅读(655) 评论(0) 推荐(0) 编辑
摘要:具体思路是:利用 <PlaneProjection ></PlaneProjection> 对Frame做一个旋转动画。在ContentFrame_Navigating 方法里,记录此时的导航页的图片。 void ContentFrame_Navigating(object sender, NavigatingCancelEventArgs e) { LastFrameContent = new WriteableBitmap(ContentFrame, null); }并在ContentFrame_Navigated(obj... 阅读全文
posted @ 2011-10-26 10:49 kntao 阅读(259) 评论(0) 推荐(0) 编辑
摘要:直接见图:目前项目:Presentation Layer:采用MVVM Pattern Service Layer: 直接采用WCF通信 persistance Layer:采用NHibernate DB:SQL Server 阅读全文
posted @ 2011-06-30 09:41 kntao 阅读(101) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示