摘要: The immediate window is an immensely useful tool for debugging applications. You can use it to execute code statements that are valid in the context o... 阅读全文
posted @ 2013-02-18 15:31 chuwachen 阅读(191) 评论(0) 推荐(0)
摘要: 1.为什么用模板模板是用来定义(或重定义)对象的外观的好东西. WPF已经提供了Style来自定义外观, 那为什么还需要Template呢? 是因为Style只能让你一个一个地设置对象的属性, 但template用来改变对象的组织结构. Style就好象是更改一台电脑的配置, 你可以换个内存, 换个... 阅读全文
posted @ 2013-02-18 14:51 chuwachen 阅读(225) 评论(0) 推荐(0)
摘要: Template是指控件的模板它代表的是一个控件的内部结构组成部分(Visual Tree)。如:Button的默认Template外面是一个边框,里面是文字描述。如果我们要把普通的文字Button改为图片按钮的话就必须要重写Button的模板,要在里面加上一个Image,即已经把Button的Te... 阅读全文
posted @ 2013-02-18 11:49 chuwachen 阅读(238) 评论(0) 推荐(0)