Orchestra.Shell.MahApps -> Orchestra.Windows.MetroDataWindow -> ValidateData bug?

55 views Asked by At

In MetroDataWindow (Orchestra.Shell.MahApps v5.0.1)

protected virtual bool ValidateData()
{
    var vm = _logic.ViewModel;
    if (vm == null)
    {
        return false;
    }

    vm.Validate();

    return vm.ValidationContext.HasErrors;
}

Does the last line reflect intended behavior?

return vm.ValidationContext.HasErrors;

I reached this while looking into why the OK button is disabled in the MetroDataWindow

1

There are 1 answers

1
Geert van Horrik On

You are absolutely right, but I think it's better to report bugs in the official issue tracker.