为什么以这种方式创建依赖性成员:
public static readonly DependencyProperty DepProperty = DependencyProperty.Register(...);
而不是这样:
protected static readonly DependencyProperty DepProp = DependencyProperty.Register(...);
我们为什么需要从外部利用Devprop成员,当我们拥有CLR“强奸手”时:
public bool Dep
{
get { return (bool)GetValue(DepProperty); }
set { SetValue(DepProperty, value); }
}