public virtual bool Validate() { var validationProperties = AttributeUtils.GetProperties <ValidateAttribute>(this.GetType()); var sb = new StringBuilder(); foreach (var itm in validationProperties) { sb.Append(this[itm.Name]); } ; Error = sb.ToString(); return(String.IsNullOrWhiteSpace(Error)); }
private void refreshProperties() { var properties = AttributeUtils.GetProperties <BindGroupAttribute>(this.GetType()); RaisePropertiesChanged(properties.Select(x => x.Name).ToArray()); }