Skip to content

Commit

Permalink
Defer property change notifications, else bulk operations on data gri…
Browse files Browse the repository at this point in the history
…d will fail...
  • Loading branch information
tom-englert committed Aug 8, 2016
1 parent 5984023 commit 5e49687
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ProjectConfigurationManager.Model/ProjectConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,12 @@ public string this[string propertyName]
}

if (property == null)
throw new ArgumentException("Unable to create property: " + propertyName, nameof(propertyName));
throw new ArgumentException(@"Unable to create property: " + propertyName, nameof(propertyName));

property.Value = value ?? string.Empty;

_projectConfiguration.OnPropertyChanged(nameof(PropertyValue));
// Defer property change notifications, else bulk operations on data grid will fail...
Dispatcher.CurrentDispatcher.BeginInvoke(() => _projectConfiguration.OnPropertyChanged(nameof(PropertyValue)));
}
}

Expand Down

0 comments on commit 5e49687

Please sign in to comment.