How do You Create a Read-Only Dependency Property?
问题 How do you create a read-only dependancy property? What are the best-practices for doing so? Specifically, what's stumping me the most is the fact that there's no implementation of DependencyObject.GetValue() that takes a System.Windows.DependencyPropertyKey as a parameter. System.Windows.DependencyProperty.RegisterReadOnly returns a D ependencyPropertyKey object rather than a DependencyProperty . So how are you supposed to access your read-only dependency property if you can't make any calls