Dependency Property Uses in WPF
I am having a hard time figuring out good reasons for the dependency property. Why the System.Controls.TextBox "Text" property a dependency property and not a normal property? What benefits does it serve being a dependency property? One of the things I am trying to accomplish is to add a ValidationRules property to my UserControl which will contain other validation rules. Like here: <customControls:RequiredTextBox.ValidationRules> <validators:NotNullOrEmptyValidationRule ErrorMessage="FirstName cannot be null or empty"/> </customControls:RequiredTextBox.ValidationRules> The problem is that I