From 7da6f8a3636fe2d9f761d9fd2d7bc0c4d1537ddc Mon Sep 17 00:00:00 2001 From: Antony Male Date: Fri, 26 Aug 2016 11:37:09 +0100 Subject: [PATCH] Make ValidatingModelBase.HasErrors virtual It really should have been.... --- Stylet/ValidatingModelBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stylet/ValidatingModelBase.cs b/Stylet/ValidatingModelBase.cs index ef69aeb..a0044b0 100644 --- a/Stylet/ValidatingModelBase.cs +++ b/Stylet/ValidatingModelBase.cs @@ -282,7 +282,7 @@ namespace Stylet /// /// Gets a value indicating whether the entity has validation errors. /// - public bool HasErrors + public virtual bool HasErrors { get { return this.propertyErrors.Values.Any(x => x != null && x.Length > 0); } }