protected override IBindingBehavior CloneInternal() { var errorPaths = ErrorPaths; var behavior = new ValidatesOnNotifyDataErrorsBehavior(); if (errorPaths != null) { behavior.ErrorPaths = errorPaths.ToArrayEx(); } return(behavior); }
static ValidatesOnNotifyDataErrorsBehavior() { ErrorsChangedEvent = typeof(INotifyDataErrorInfo).GetEventEx(nameof(INotifyDataErrorInfo.ErrorsChanged), MemberFlags.Instance | MemberFlags.Public); IdNotifyDataErrorInfoBindingBehavior = new Guid("198CBAA2-CF75-4620-9BDD-A1EBF9B8B2F4"); Prototype = new ValidatesOnNotifyDataErrorsBehavior(); }
static ValidatesOnNotifyDataErrorsBehavior() { ErrorsChangedEvent = typeof(INotifyDataErrorInfo).GetEventEx("ErrorsChanged", MemberFlags.Instance | MemberFlags.Public); IdNotifyDataErrorInfoBindingBehavior = new Guid("198CBAA2-CF75-4620-9BDD-A1EBF9B8B2F4"); Prototype = new ValidatesOnNotifyDataErrorsBehavior(); }
protected override IBindingBehavior CloneInternal() { var errorPaths = ErrorPaths; var behavior = new ValidatesOnNotifyDataErrorsBehavior(); if (errorPaths != null) behavior.ErrorPaths = errorPaths.ToArrayEx(); return behavior; }