Basically I have the following situation:
<TextBox Text="{Binding MyIntValue}" />
<Button prism:Click.Command={Binding MyCommand}" />
public Boolean CanDoCommand()
{
return (MyIntValue < 100);
}
public void DoCommand() { ... }
So here's the problem, if I type in the value of 25 the MyCommand becomes enabled. Afterwards, if I change it to 25A the Button is still enabled because the binding was not updated to reflect an error in my ViewModel. Instead, I only have an binding error on my View. This leaves the MyCommand button enabled and the MyIntValue still at 25.
How can I disable the button based on having any binding issues even if my ViewModel is proper?
Edit (What the poster is truly asking for):
How can I disable a button regardless of what the CanExecute method returns from the ViewModel based upon the View having a BindingError?