locked
TextBox validation in an wpf application RRS feed

  • Question

  •  Hello
     
         I'm trying to validate textboxes in a wpf application.I've noticed the Validating event is no longer available (I'm using Visual Studio 2008).Can anyone suggest the best event to handle to enable validation as the user presses TAB to move through the TextBoxes?
              I'm new to wpf , it seems strange that this event , as used in forms applictions , is not available here.
       Thanks
    Sunday, February 14, 2010 2:36 PM

Answers

  • Hi,

    Validation can be handled in may ways in WPF.

    Check this sample It is a good sample on validation by IDataErrorInfo and Validation rule. 

    For any other clarification please revert back.


     


    Sincerely,
    CodingSense
    www.codingsense.wordpress.com
    Please mark posts as answers/helpful if it resolves your queries.
    • Marked as answer by Kira Qian Monday, February 22, 2010 8:39 AM
    Sunday, February 14, 2010 5:13 PM

All replies

  • Hi,

    Validation can be handled in may ways in WPF.

    Check this sample It is a good sample on validation by IDataErrorInfo and Validation rule. 

    For any other clarification please revert back.


     


    Sincerely,
    CodingSense
    www.codingsense.wordpress.com
    Please mark posts as answers/helpful if it resolves your queries.
    • Marked as answer by Kira Qian Monday, February 22, 2010 8:39 AM
    Sunday, February 14, 2010 5:13 PM
  •  Thank you codingsense

                   I'll have a look at this.

         regards
    • Proposed as answer by codingsense Tuesday, February 16, 2010 3:39 PM
    Sunday, February 14, 2010 8:16 PM