摘要: 附加属性附加属性,大家都不陌生,最常见的是Canvas.Left/Canvas.Top,类似的也有Grid.Row/Grid.Column等附加属性。举个最常见的例子 需要说明的是并不是所有的附加属性都是元素放进去后才会有附加效果,上面的例子只是刚好是这种错觉的巧合情况,Grid.Row也属于这... 阅读全文
posted @ 2013-06-26 23:35 DebugLZQ 阅读(27697) 评论(6) 推荐(8) 编辑
摘要: 依赖属性".NET properties are nothing more than syntactic sugar over set and get methods."我们知道.NET的属性只不过是get/set方法的语法糖衣。"Dependency properties are the workhorse of WPF. This infrastructure provides for many of WPF's features, such as data binding, animations, and visual inheritance. In 阅读全文
posted @ 2013-06-26 17:36 DebugLZQ 阅读(9096) 评论(0) 推荐(2) 编辑
摘要: MS Test也可以方便的进行单元测试,可以通过Visual Studio很方便的建立单元测试。添加对待测试工程的引用,即可方便的开始单元测试。最基本的一些测试使用如下:using System;using Microsoft.VisualStudio.TestTools.UnitTesting;namespace UnitTestProject1{ [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { } ... 阅读全文
posted @ 2013-06-26 09:38 DebugLZQ 阅读(3763) 评论(0) 推荐(0) 编辑