サブプロパティ AddressLines を持つ Address というエンティティに TextBox コントロールをバインドしています。内部検証ロジックには、AddressLines プロパティの ValidationErrors がありますが、赤い境界線を介してコントロールに「視覚的に」反映されません。
<TextBox Text="{Binding Path=Address.AddressLines,
Mode=TwoWay,
UpdateSourceTrigger=PropertyChanged,
NotifyOnValidationError=True}"
ToolTip="{Binding RelativeSource={RelativeSource Self},
Path=(Validation.Errors)[0].ErrorContent}" />
私が間違っていなければ、エンティティAddress
自体が null ではなく、プロパティAddressLines
が null であるために発生します。この場合、Master-Detail エラーの場合に検証エラーをコントロールに通知する方法は?