How can I define a IDataErrorInfo Error Property for multiple BO properties

后端 未结 3 1719
一个人的身影
一个人的身影 2021-02-06 01:20

I\'m starting to implement validation in my WPF project via the IDataErrorInfo interface. My business object contains multiple properties with validation info. How do I get a l

3条回答
  •  没有蜡笔的小新
    2021-02-06 01:58

    My understanding is that to use this interface, you enumerate the properties on the object, and call the indexer once for each property. It is the caller's responsibility to aggregate any error messages.

提交回复
热议问题