public string this[string columnName] { get { string optional = null; _arbiter.Do(() => { _errors[columnName] = ValidateProperty(columnName); optional = ValidateOptionalProperty(columnName); OnPropertyChanged(nameof(Error)); }); if (optional != null) { return(optional); } if (_errors.ContainsKey(columnName)) { return(_errors[columnName]); } return(null); } }
private void OnViewChanged(object sender, RoutedEventArgs e) { _actionArbiter.Do(() => Password = AssociatedObject.SecurePassword.Copy()); }
private void OnTextChanged(object sender, TextChangedEventArgs e) { _arbiter.Do(() => SearchText = SearchBoxPart.Text); }