private bool OnGenerateDataCanExecute(object parameter)
{
// Note: normally you wouldn't use the ExposeAttribute if you need to access
// the properties, but this is to show that all existing features (such as
// INotifyPropertyChanged, IDataErrorInfo, etc also work with the ExposeAttribute).
if (!string.IsNullOrEmpty(GetValue<string>("FirstName")))
{
return false;
}
if (!string.IsNullOrEmpty(GetValue<string>("MiddleName")))
{
return false;
}
if (!string.IsNullOrEmpty(this.LastName))
{
return false;
}
return true;
}