摘要:
回调函数回调函数就是把一个方法的传给另外一个方法去执行。在C#有很多回调函数,比如异步操作的时候。这里先举个例子: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text... 阅读全文
摘要:
最近在使用RichTextBox时,因为是MVVM模式,要绑定它的Document,但Document不是依赖属性,就重新写了个类BindableRichTextBox,继承自RichTextBox。起初一切顺利,但后面发现在设计视图时,总是报下面这个错误: ArgumentException: D 阅读全文