It is not possible. DependencyProperty
can only be created in class that extends DependencyObject
.
DependencyObject services and characteristics include the following: Dependency property hosting support.
- You register a dependency property by calling the Register method, and storing the method's return value as a public static field in your class.
Is this possible?
Not Possible
If it's not possible is there an alternate implementation you can suggest?
Use INotifyPropertyChanged, and IDataErrorInfo with normal CLR property for Property validation. Example