I created a custom textbox to include validation. In this control is a dependency property called InputType. I capture the binding expression and add the rules when the da