문제

In the case of a binding such as

<TextBox Text={Binding Path=SomeItem.AnotherItem.Property} />

Which class(es) need to implement INotifyDataErrorInfo:

  1. The DataContext
  2. SomeItem
  3. AnotherItem
  4. Some combination of these
도움이 되었습니까?

해결책

AnotherItem

INotifyDataErrorInfo must be implemented by object who own's the property to which is bound.

다른 팁

If you're using an MVVM pattern , the INotifyDataErrorInfo is usually implemented by the view-model. This view-model, usually, is then your view's datacontext.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top