Learning note for Binding and validation

Summary of my learning note for WPF

Binding

  • Binding to DataSet.

    when we want to add new record, we should modify DataTable, not the DataTableView.

  • Validation when Binding

    we can get the detail descrition from msdn.

    For ValidationRules, generally, we have three validaterule type: ExceptionValidationRule, DataErrorValidationRule,CustomervalidationRule

    ExceptionValidationRule: you can refer msdn

    DataErrorValidationRule: you can refer DataErrorValidationRule

    CustomerErrorValidation: you canrefer CustomerRule

  • Binding Group

    if we hope to apply validationg over a set of propeties, we can use binding group and add validationrule to it.
    refer link in MSDN

posted @ 2016-05-04 10:46  kongshu  阅读(93)  评论(0编辑  收藏  举报