随笔分类 - WPF
摘要:依赖属性的定义,分为3步(以PresentationFramework中的System.Windows.Controls.Button为例)1. 声明依赖属性 public static readonly DependencyProperty IsDefaultProperty2. 调用DependencyProperty.Register创建依赖属性实例 IsDefaultProperty = DependencyProperty.Register("IsDefault", typeof(bool), typeof(Button), new FrameworkProper
阅读全文

浙公网安备 33010602011771号