posted @ 2010-08-12 14:36 Learn more 阅读(194) 评论(0) 推荐(0)
摘要:
wpf 循环里面加入 Application.Current.Dispatcher.Invoke(new Action(()=> { .... }), DispatcherPriority.Loaded); 可以同步响应,还有一个BeginInvoke 有时候可以用异步,有时候只能用同步... 阅读全文
摘要:
本文来自CSDN博客,转载自:http://blog.csdn.net/hikaliv/archive/2009/08/12/4439618.aspx 建立漂亮 UI 时需要关注应用程序的性能,WPF 尤其如此。以下是从 MS 文档中总结出的一些关键的性能优化点,实际编写中可备参考。 1、建立逻辑... 阅读全文
posted @ 2010-07-19 22:41 Learn more 阅读(293) 评论(0) 推荐(0)
摘要:
依赖属性、附加属性(基本、继承、元数据) MVVM ITEM control 依赖属性,附加属性 虚拟化 自定义panel 阅读全文
posted @ 2010-07-05 22:07 Learn more 阅读(143) 评论(0) 推荐(0)
摘要:
为什么这样设计,数据库;为什么不那样设计。你做的仅仅是网站? 太没技术含量了。你还要继续这样下去?what a shame 阅读全文
posted @ 2010-06-11 17:52 Learn more 阅读(153) 评论(0) 推荐(0)
摘要:
尽量先过滤数据再进行表连接,例如:select a from tblUser inner join tblShop on tblUser.id=tblShop.id inner join tblThing on tblUser.id=tblThing.id where tblUser.id=4改为 select a from (select * from tblu... 阅读全文
posted @ 2010-05-07 18:01 Learn more 阅读(114) 评论(0) 推荐(0)
摘要:
转自:http://www.cnblogs.com/024hi/archive/2009/05/17/Let_Implementation_Of_INotifyPropertChanged_More_Graceful.html 我想大部分的WPF和SL开发者都应该对INotifyPropert... 阅读全文
posted @ 2010-04-04 17:04 Learn more 阅读(812) 评论(0) 推荐(0)
摘要:
Windows Service 新增 Installer 功能並自動開啟防火牆設定 最近正準備寫一支 Windows Service 程式,正好來分享如何讓 Windows Service 程式具有自動安裝的能力,而且若要在安裝的過程中順便開啟 Windows Firewall 的設定時 C# ... 阅读全文
posted @ 2010-03-24 10:57 Learn more 阅读(436) 评论(0) 推荐(0)
摘要:
近段时间在做C#的项目,使用到了Windows Service.项目包括一个Windows Service工程,一个具体的业务处理工程(dll)以及一个安装工程.现就这几天的使用心得做一下说明. 1.Windows Service程序与一般程序的区别。Windows Service程序不能等同于一般... 阅读全文
posted @ 2010-03-18 16:06 Learn more 阅读(972) 评论(0) 推荐(0)
摘要:
1.C#中的垃圾回收机制是怎样的? 垃圾回收器是用来管理应用程序的内存分配和释放的。当一个应用程序在运行的时候,垃圾回收器设置了一个托管堆。每次当开发人员使用 new 运算符创建对象时,运行库都从托管堆为该对象分配内存。新创建的对象被放在上次创建的对象之后。垃圾回收器保存了一个指针,该指针总是指向托... 阅读全文
posted @ 2010-03-06 11:27 Learn more 阅读(188) 评论(0) 推荐(0)
浙公网安备 33010602011771号