上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页
摘要: MS:http://msdn.microsoft.com/zh-cn/library/bb513641(v=vs.85).aspx 阅读全文
posted @ 2013-04-25 16:31 xiaokang088 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 挂起 – 从操作系统角度来看当一个应用程序(或者更准确定的说,一个线程)在桌面上创建一个窗口时,它会执行一个桌面窗口管理工具( Desktop Window Manager , DWM )的隐式的协议来及时的处理窗口消息。 DWM 回发消息(键盘 / 鼠标的输入以及来自于其他窗口或窗口本身的消息)到一个特定线程的( thread-specific )消息队列。该线程将会通过它的消息队列获取并发送这些消息。如果线程没有通过调用 GetMessage() 来为队列服务,则消息将不会被处理,并且窗口会挂起:此时,既不能刷新屏幕也不能接受任何来自于用户的输入。系统会通过向消息队列中的等待消息( pen 阅读全文
posted @ 2013-04-25 16:08 xiaokang088 阅读(467) 评论(0) 推荐(0) 编辑
摘要: People Finder Interchange FormatWiki:http://en.wikipedia.org/wiki/PFIFSpec:http://zesty.ca/pfif/1.4/Org:http://pfif.org/ 阅读全文
posted @ 2013-04-25 16:01 xiaokang088 阅读(203) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/368926/how-do-i-determine-if-a-wpf-window-is-modalhttp://stackoverflow.com/questions/5093899/close-all-open-modal-dialog-windowsSystem.Windows.Interop.ComponentDispatcher.IsThreadModalBut if show MessageBox or other native dialog, this API is unhelp. 阅读全文
posted @ 2013-04-24 09:16 xiaokang088 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 这有一篇很好的文章,Improving WPF applications startup timehttp://blogs.msdn.com/b/jgoldb/archive/2007/10/10/improving-wpf-applications-startup-time.aspx摘要几点:1.Warm start is different with cold start.2.Analysis start code.3. Load fewer module, remove unuseful code and reference.4.avoid unnecessary init5.consi 阅读全文
posted @ 2013-04-09 08:45 xiaokang088 阅读(3189) 评论(0) 推荐(0) 编辑
摘要: Code as follow: public static class AssociateExtensionHelper { public static void CreateExtension(string extension, string commandPath) { string operationkeyName = "Do" + extension; var key = Registry.ClassesRoot.CreateSubKey(extension); key.SetVa... 阅读全文
posted @ 2013-04-03 10:36 xiaokang088 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 最近在做WP的语言文件编译时,发现多个语种的编译真的很辛苦啊。于是搜集了 自动编译的相关代码。梦想有一天,把语言文件都放在excel里面,一键搞定所有的语言dll。代码如下: static void Main(string[] args) { //string path = @"E:\OpenSource\SMSHelper\SMSHelper\SMSHelper.csproj"; string path2 = @"SMSHelper\SMSHelper\SMSHelper.csproj"; string pat... 阅读全文
posted @ 2013-03-22 15:06 xiaokang088 阅读(1590) 评论(1) 推荐(1) 编辑
摘要: 以往使用snoop或者WPF Performance suite查看WPF应用程序的 UI结构,非常爽。但是,Popup的Dialog就苦逼了,死活不行啊。今天发现了VisualStudio的WPF Tree Visualizer 可以查看,但是必须是在调试环境下。MS的文档: http://msdn.microsoft.com/en-us/library/dd409789.aspx如果没办法调试,仍然不行啊。解决一点算一点吧,记录如下:1. 断点选中 UI对象,下拉箭头,看到了吧,点他一下。2. 打开后,如下:3. 也可以使用Coded UI Test 从测试的角度来搞,但是毕竟还是有点麻烦 阅读全文
posted @ 2013-03-05 14:06 xiaokang088 阅读(1420) 评论(2) 推荐(1) 编辑
摘要: AreComObjectsAvailableForCleanup(http://msdn.microsoft.com/zh-cn/library/system.runtime.interopservices.marshal.arecomobjectsavailableforcleanup.aspx)Indicates whether runtime callable wrappers (RCWs) from any context are available for cleanup.RemarksIf there are a lot of references between managed 阅读全文
posted @ 2013-03-05 13:45 xiaokang088 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 释放COM对象相关文档:http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.releasecomobject.aspxMarshal.FinalReleaseComObject 方法http://msdn.microsoft.com/zh-cn/library/system.runtime.interopservices.marshal.finalreleasecomobject.aspxMarshal.ReleaseComObject存安全隐患 阅读全文
posted @ 2013-03-04 14:59 xiaokang088 阅读(1898) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页