上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: Actually the title of this article should be entitled “How to use WeakEventManager with ICommand implementations”, but the memory leak title is more exciting (and true) Overview Some WPF controls, suc... 阅读全文
posted @ 2015-01-13 17:26 东风125 阅读(317) 评论(0) 推荐(0) 编辑
摘要: In a previous post Should I expose asynchronous wrappers for synchronous methods?, I discussed “async over sync,” the notion of using synchronous functionality asynchronously and the benefits that doi... 阅读全文
posted @ 2015-01-13 14:15 东风125 阅读(236) 评论(0) 推荐(0) 编辑
摘要: This post was written by Stephen Toub, a frequent contributor to the Parallel Programming in .NET blog. He shows us how Visual Studio 2012 and an attention to detail can help you discover unnecessary... 阅读全文
posted @ 2015-01-13 13:49 东风125 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Lately I’ve received several questions along the lines of the following, which I typically summarize as “async over sync”: In my library, I have a method “public T Foo();”. I’m considering exposing ... 阅读全文
posted @ 2015-01-13 13:43 东风125 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Stephen Cleary Download the Code Sample This is the second article in a series on combining async and await with the established Model-View-ViewModel (MVVM) pattern. Last time, I showed how to data bi... 阅读全文
posted @ 2015-01-13 09:39 东风125 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Posted on January 25, 2012 by Matthieu MEZIL 01/26/2012: Code update Imagine the following scenario: you have a WCF service with two methods:List GetCustomers(); List GetOrders(int CustomerId); You w... 阅读全文
posted @ 2015-01-13 09:27 东风125 阅读(645) 评论(0) 推荐(0) 编辑
摘要: WPFhas supported validation since the first release in .NET 3.0. That support is built into the binding object and allows you to indicate validation e... 阅读全文
posted @ 2014-12-12 15:19 东风125 阅读(401) 评论(0) 推荐(0) 编辑
摘要: In this post we will be discussing about change tracking feature of Entity Framework Code First. Change tracking allows Entity framework to keep track... 阅读全文
posted @ 2014-12-12 11:33 东风125 阅读(640) 评论(0) 推荐(0) 编辑
摘要: //Writes colored text to the console and allows to clear previously written lines//as long a not line break is present//Sample - screenshot at http://... 阅读全文
posted @ 2014-12-04 15:08 东风125 阅读(240) 评论(0) 推荐(0) 编辑
摘要: IDisposable has been around since the beginning of .Net.The basic premise is simple..Developers dont need to manage memory now. The 'Garbage Collector... 阅读全文
posted @ 2014-12-03 09:38 东风125 阅读(187) 评论(0) 推荐(0) 编辑
摘要: With EntityFramework’s support for enums, there is no longer any need to include lookup tables in the model. But I do want to have them in the databas... 阅读全文
posted @ 2014-11-27 11:19 东风125 阅读(390) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/beniao/archive/2010/08/11/1797537.html在MEF之前,人们已经提出了许多依赖注入框架来解决应用的扩展性问题,比如OSGI 实现以Spring 等等。在 Microsoft 的平台上,.NET Framework 自身内... 阅读全文
posted @ 2014-11-25 22:37 东风125 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 在有些时候,我们总会碰到一些需要更换Office安装Key(序列号、密钥)的情形,例如购买或朋友赠了新的Key等等。网上搜索的话,有很多种更改变换Office 2010序列号办法,今天就来挨个介绍一下,当然,本方法同样会适合于Office 2013的。首先,来看下网上常见的方法,有些繁琐,当然,也能... 阅读全文
posted @ 2014-11-20 21:24 东风125 阅读(464) 评论(0) 推荐(0) 编辑
摘要: Last month I’ve a chance to develop an app using Sqlite and Entity Framework Code First. Before I started with this project, I thought everything will... 阅读全文
posted @ 2014-11-20 13:37 东风125 阅读(900) 评论(0) 推荐(0) 编辑
摘要: ebruary 11, 2012bymikael koskinen2 commentsIn this tutorial we will go through of couple different ways of using custom constructor parameters when re... 阅读全文
posted @ 2014-11-17 23:22 东风125 阅读(485) 评论(0) 推荐(0) 编辑
摘要: IntroductionYou can download the Visual Studio solutions for this articleat this location. With all the Nuget binaries, it's about 57 MB (too big to b... 阅读全文
posted @ 2014-11-14 00:00 东风125 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: http://coding.abel.nu/2013/11/enums-and-lookup-tables-with-ef-code-first/With EntityFramework’s support for enums, there is no longer any need to incl... 阅读全文
posted @ 2014-11-13 15:19 东风125 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Inmy previous post, I have already defined how you can inherit from an existing control and define your own reusable chunk. The reusable XAML code tha... 阅读全文
posted @ 2014-11-12 22:03 东风125 阅读(307) 评论(0) 推荐(0) 编辑
摘要: I have always found that there isn’t enough documentation about Custom Control development in WPF. Most of the information is segregated into articles... 阅读全文
posted @ 2014-11-12 15:12 东风125 阅读(185) 评论(0) 推荐(0) 编辑
摘要: In XAML, when you want to reference a CLR type, you have to add a namespace mapping that maps the XML namespace to the CLR namespace, like so:xmlns:lo... 阅读全文
posted @ 2014-11-12 14:22 东风125 阅读(259) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页