[WPF]WPF中如何实现数据与表示分离。(二) —— Binding(下) 转载
摘要:
在我刚刚开始接触到WPF的DependencyProperty的时候,仅仅觉得是一个很巧妙的实现,随着学习WPF的深入,也来越觉得DependencyProperty其实是WPF的核心技术点之一。DependencyProperty和DependencyObject配合,提供了WPF中基本的数据存储、访问和通知的机制。也正是因为这两个东西的存在,使得XAML,Binding,Animation都成为可能。让我们来看一下重新实现后的数据层。1usingSystem;2usingSystem.Windows;3usingSystem.Windows.Media;45namespaceColorPi 阅读全文
posted @ 2013-08-05 17:47 ExplorerMan 阅读(167) 评论(0) 推荐(0) 编辑