Disable button when there are validation errors in listbox datatemplate <p>I have listbox with list of textboxes created using data template, And I want to disable save button when there are validation errors in listbox datatemplate(list of textboxes). I have used IDataErrorInfo for validation.</p> <pre><code>&lt;Style x:Key="ButtonStyle" TargetType="{x:Type Button}"&gt; &lt;Style.Triggers&gt; &lt;DataTrigger Binding="{Binding ElementName=errorList, Path=(Validation.HasError)}" Value="True"&gt; &lt;Setter Property="IsEnabled" Value="False"/&gt; &lt;/DataTrigger&gt; &lt;/Style.Triggers&gt; </code></pre> <p></p>