之乎者也,阿弥陀佛

软件设计的原则就是,化繁为简,化难为易,把人的思维集中在简单的领域,然后通过有序的组合实现复杂的逻辑。

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  341 随笔 :: 0 文章 :: 76 评论 :: 62万 阅读

随笔分类 -  WPF/SL

摘要:赋值VS绑定要理解MVVM模式,最重要的是理解绑定的概念.做B/S或者对C/S理解不够的程序员可能不了解"绑定",它与赋值类似,但又"高级"一点.一个简单的类:public class MyClass{ public MyClass() { this._Time = DateTime.Now.ToString(); } private string _Time; public string Time { get { return this._Time; } se... 阅读全文
posted @ 2012-05-16 18:02 搏击的小船 阅读(283) 评论(0) 推荐(0) 编辑

摘要:A article on how to style a standard Silverlight chart to look like the Google Analytics chart.Download source code - 11.1 KBIntroductionI loveGoogle Analytics! I use it to monitor every site I own... 阅读全文
posted @ 2010-07-26 18:21 搏击的小船 阅读(1508) 评论(0) 推荐(0) 编辑

摘要:This post has been updated to work with theRTW version of the Silverlight 2 DataGrid. The code examples are not guaranteed to work with previous Beta versions of the DataGrid.Read more about the featu... 阅读全文
posted @ 2010-07-26 13:24 搏击的小船 阅读(584) 评论(0) 推荐(0) 编辑

摘要:引用: xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 样式 (例如右对齐): <Style x:Key="RightAlignCell" TargetType="data:DataGridCell"> <Setter Property="Hori... 阅读全文
posted @ 2010-07-23 15:30 搏击的小船 阅读(966) 评论(0) 推荐(0) 编辑

摘要://Silverlight页面的跳转//(Application.Current.RootVisualasIContent).Content=newDragControl();//普通页面跳转HtmlWindowhtml=HtmlPage.Window;//html.Navigate(newUri("http://www.0379zd.com"));//普通网址html.Navigate(newU... 阅读全文
posted @ 2010-07-15 11:25 搏击的小船 阅读(459) 评论(0) 推荐(0) 编辑

摘要:http://blog.benday.com/archive/2009/11/02/23248.aspx 阅读全文
posted @ 2010-07-12 18:39 搏击的小船 阅读(299) 评论(0) 推荐(0) 编辑

摘要:添加IIS的MIME类型  在Silverlight中需要使用xap、XAML文件类型,如果您想在IIS服务器上使用Silverlight程序,所以必须在IIS中注册 xaml和xap的MIME文件类型。打开IIS->站点属性->HTTP头->MIME类型->新建: 扩展名:.xap MIME类型:xapapplication/x-silverlight 扩展名:.x... 阅读全文
posted @ 2010-07-07 10:56 搏击的小船 阅读(449) 评论(0) 推荐(0) 编辑

摘要:Silverlight中常常用到DataGrid来展示密集数据. 而常见应用系统中我们需要把这些数据导入导出到固定Office套件中例如常用的Excel表格. 那么在Silverlight 中如何加以实现? 在参考大量资料后 提供参考思路如下: A:纯客户端导出处理.利用Silverlight 与Javascript 进行交互实现导出Excel. B:服务器端导出.获得DataGrid数据源. ... 阅读全文
posted @ 2010-07-02 14:04 搏击的小船 阅读(867) 评论(0) 推荐(0) 编辑

摘要:参考:http://www.silverlightchina.net/html/developer/2010/0505/1093.htmlhttp://www.silverlightchina.net/html/developer/2010/0504/1081.htmlhttp://www.silverlightchina.net/html/developer/2010/0125/623.html... 阅读全文
posted @ 2010-06-29 00:39 搏击的小船 阅读(338) 评论(0) 推荐(0) 编辑

摘要:Silverlight 中调用服务全部采用异步方式,在调用 WCF 时似乎没有什么问题。但是如果要用一个 WebRequest 对象去向某个页面 Post 一些内容,然后获得回应。就会发现在 Worker thread 中将无法更新 UI.在 Windows Forms 里,可以用 Control.Invoke. 但是 Silverlight 没有这个。Silverlight 中有更好的办法。De... 阅读全文
posted @ 2010-06-28 17:07 搏击的小船 阅读(196) 评论(0) 推荐(0) 编辑

摘要:好几次了,执行的好好的Silverlight项目调用Web Service时报"System.Security.SecurityException: 安全性错误",如下图所示: 因为这几天只是学习、测试Silverlight的功能,并没有作什么正式的项目,所以每次看到这个就直接重新建一个工程,今天真的不耐烦了,上网找了下原因,大概是Silverlight跨域访问的权限问题,需要在Silverli... 阅读全文
posted @ 2010-06-28 16:01 搏击的小船 阅读(2237) 评论(0) 推荐(0) 编辑

摘要:http://www.itlibs.com/tech/archive/20100120/208701_5.html 阅读全文
posted @ 2010-06-17 18:34 搏击的小船 阅读(295) 评论(0) 推荐(0) 编辑

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