Im learning validations in WPF and got one question, when I want to check in XAML if any control has any errors and unblock smth if so then I can write for example something like this code snippet:
<DataTrigger Binding="{Binding ElementName=tx2, Path=(Validation.HasError)}" Value="false">
<Setter Property="IsEnabled" Value="True"/>
</DataTrigger>
What interest me is the part :
Path=(Validation.HasError)
Why do I have to put this in brackets? When I bind for example :
<TextBlock Text={Binding ElementName=myTextBlock, Path=Text.Length}/>
I dont need brackets but Im also using the smth.smth syntax, then why Validation.HasError mut be in "( )" ?