I have the following XAML:
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding Path=Errors, Converter={StaticResource ErrorsCountConverter}}">
<Condition.Value>True</Condition.Value>
</Condition>
<Condition Binding="{Binding Path=Errors[0].HasError}" Value="True" />
</MultiDataTrigger.Conditions>
<Setter Property="Background" Value="Red" />
</MultiDataTrigger>
</Style.Triggers>
Mistakes are this ObservableCollection<BrokenRule>. BrokenRule has a HasError property. Now I want to bind to this HasError property, but I'm not sure how to refer to it in XAML.
source
share