I have a text input area defined as follows:
<TextBox> <TextBox.Text> <Binding Path="MyProperty"> <Binding.ValidationRules> <valid:MyValidator/> </Binding.ValidationRules> </Binding> </TextBox.Text> </TextBox>
My problem is that, depending on a different setting, what should be inserted here changes. Thus, the behavior of input validation must change.
How can I change the code of an active validation rule for a specific text field?
wpf binding
Mizipzor
source share