摘要: 依赖属性的定义,分为3步(以PresentationFramework中的System.Windows.Controls.Button为例)1. 声明依赖属性 public static readonly DependencyProperty IsDefaultProperty2. 调用DependencyProperty.Register创建依赖属性实例 IsDefaultProperty = DependencyProperty.Register("IsDefault", typeof(bool), typeof(Button), new FrameworkProper 阅读全文
posted @ 2013-11-24 14:38 SillyProgrammer 阅读(347) 评论(0) 推荐(0) 编辑