I can't figure this guy out / in desperate need of assistance.
I have an ItemsControl and a DataTemplate as the ItemTemplate
i.e.
<DataTemplate>
<StackPanel>
<TextBox Text={Binding Prop1}/>
<TextBox Text={Binding Prop2}/>
</StackPanel>
</DataTemplate>
I have seen plenty of examples for applying validation to the target of an individual binding (i.e. just validating each textbox separately). I'd like to have a visual change to the whole DataTemplate if there is ANYTHING wrong (either Prop1 OR Prop2), using an <AdornedelementPlaceholder/>
, as I've seen in many examples.
Essenetially, is there a way to show an error if ANY item in the object that represents my DataContext of the DataTemplate has a problem?