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.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -