上一页 1 2 3 4 5 6 ··· 23 下一页
摘要: “What happens if we replace aspecific resource? Would that be reflected in all objects using the resource? And if not, can webind to the resource dynamically?”接上篇博文,如果我们需要在C#代码中动态替换某个logical resource,我们该如何做呢?如,Window的Resources属性赋值如下: ... 阅读全文
posted @ 2013-06-28 23:06 DebugLZQ 阅读(656) 评论(0) 推荐(0) 编辑
摘要: "Traditional application resources consist of binary chunks of data, typically representing things such as icons, bitmaps, strings, and XML. In fact, the .NET framework providesgeneric support for these through the ResourceManager class.WPF is no different—binary resources play an important rol 阅读全文
posted @ 2013-06-28 17:00 DebugLZQ 阅读(917) 评论(0) 推荐(0) 编辑
摘要: "Markup extensions are used to extend the capabilities of XAML, by providing declarativeoperations that need more than just setting some properties. These can be used to do prettymuch anything, so caution is advised – these extensions must preserve the declarative natureof XAML, so that non-dec 阅读全文
posted @ 2013-06-27 21:27 DebugLZQ 阅读(4692) 评论(7) 推荐(4) 编辑
摘要: "XAML provides an easy way to set values of properties—type converters and the extended property syntax allow for flexible setting of values. However, some things cannot be expressed as a simple value, such as setting a property to the value of some static property."这个相对比较简单,知道就行,Code Snip 阅读全文
posted @ 2013-06-27 17:57 DebugLZQ 阅读(2407) 评论(0) 推荐(0) 编辑
摘要: 附加属性附加属性,大家都不陌生,最常见的是Canvas.Left/Canvas.Top,类似的也有Grid.Row/Grid.Column等附加属性。举个最常见的例子 需要说明的是并不是所有的附加属性都是元素放进去后才会有附加效果,上面的例子只是刚好是这种错觉的巧合情况,Grid.Row也属于这... 阅读全文
posted @ 2013-06-26 23:35 DebugLZQ 阅读(27257) 评论(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 阅读(9041) 评论(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 阅读(3759) 评论(0) 推荐(0) 编辑
摘要: 1.XAML接触WPF的第一眼就是XAML---XAML是用来描绘界面的。其实不然!"Actually, XAML has nothing to do with UI. It's merely a declarative way of constructing objects and setting their properties.”XAML和UI一点关系也没有,它仅仅是一种以声明方式来构建对象,设置对象属性的一种方式而已,和code behind file作用差不多。XAML这种声明方式构建对象的好处是,程序员只管声明自己要什么,至于如何构建则不需要考虑。XAML对WPF 阅读全文
posted @ 2013-06-25 21:45 DebugLZQ 阅读(5383) 评论(1) 推荐(1) 编辑
摘要: 最近因为毕业的一些事情,请了很多假。因为论文涉及一些不宜公开的内容,所以提交起来比较麻烦,前后我共打印了3次(9本)论文,今天终于把论文提交的事情给弄完了。至此,关于硕士学位的相关材料提交结束,下面就等着领学位证和毕业证。然后,办理离校手续离校了。 回顾下我大学到研究生这7年 本科阶段就是学... 阅读全文
posted @ 2013-06-25 14:54 DebugLZQ 阅读(736) 评论(1) 推荐(1) 编辑
摘要: 前面DebugLZQ的两篇博文:浅谈IOC--说清楚IOC是什么IoC Container Benchmark - Performance comparison在浅谈IOC--说清楚IOC是什么中,DebugLZQ介绍了什么是到底什么是IOC/DI,再复习一下,那么到底什么是IOC呢?就像Marti... 阅读全文
posted @ 2013-06-24 14:42 DebugLZQ 阅读(9748) 评论(1) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 23 下一页