protected void ValidateProperty(ShortcutProperty prop, [CallerMemberName] string propertyName = null) { foreach (KeyValuePair <string, bool> pair in prop.Errors) { if (pair.Value) { base.AddError(pair.Key, propertyName); } else { base.RemoveError(pair.Key, propertyName); } } }
set => SetValue(ShortcutProperty, value);
set => this.SetValue(ShortcutProperty, value);