Disable ValidatesOnDataErrors property if the control is disabled

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mahendra dubey
    New Member
    • Aug 2009
    • 16

    #1

    Disable ValidatesOnDataErrors property if the control is disabled

    Hi There
    I am working on my first WPF project.I have a TextBox control.In Binding property of this TextBox,I want to set ValidatesOnData Errors=true. But if this TextBox is disabled then I want to set ValidatesOnData Errors=false. I want to do all these things in Xaml.How can i do that(Can we bind ValidatesOnData Errors to a property?).Any help will be appreciated.
    Thanks,
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Could you not just set the value when the enable state changes?
    There is an event EnabledChanged that could work for you?

    Comment

    Working...