I have several forms with many textboxes/comboboxes, and I would like to have the "Save" button disabled while at least one of the fields are invalid. I've been able to setup some custom ValidationRules, like so (textbox example shown):
<Binding Path="Name">
<Binding.ValidationRules>
<my:TextFieldNotEmpty/>
</Binding.ValidationRules>
</Binding>
My question is: how can I set my form up so that, when even 1 validation rule fails, the "Save" button is not enabled? Is there a standard way of handling a situation (a trigger, perhaps), or is this a place where WPF falls short?