-
Notifications
You must be signed in to change notification settings - Fork 1
dmitry-shechtman edited this page Jan 1, 2015
·
5 revisions
Since WPF has built-in invalidation of errors on property change, there is no need for raising ErrorsChanged in such a case.
Therefore, constructors of validatable WPF view models should pass false to base. It is advisable to define a base class as follows:
using Ditto.AsyncMvvm;
public abstract class ViewModelBase : AsyncValidatableBindableBase<string>
{
protected ViewModelBase()
: base(false)
{
}
}or:
using Ditto.AsyncMvvm;
public abstract class ViewModelBase : ValidatableBindableBase<string>
{
protected ViewModelBase()
: base(false)
{
}
}