c# - WPF - Workaround for ValidationRule not being a DependencyObject -
ValidationRule is not a dependency object, since ValidationRule is not able to use the data binding on the property to be best suited for
What is the solution?
Below I'm an example to do like I want to be able to validate text with some other dependency property in the text box I am
& lt; Text box name = "myTextBox" & gt; & Lt; TextBox.Text & gt; & Lt; Binding Path = "MySource" UpdateSourceTrigger = "Property Change" & gt; & Lt; Base: EclairsRule target = "{binding micrograj}" /> & Lt; / Binding & gt; & Lt; /TextBox.Text> & Lt; / Text box & gt;
You can use Josh Smith.