Skip to content

Commit

Permalink
Merge pull request #14 from ShawnLaMountain/main
Browse files Browse the repository at this point in the history
OnPropertyChanged is now virtual so it can be overriden if needed
  • Loading branch information
ShawnLaMountain authored Sep 6, 2023
2 parents 208d034 + 569f361 commit 69d10bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void Move(int oldIndex, int newIndex)
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, removedItem, index));
}

public void OnPropertyChanged(string propertyName)
public virtual void OnPropertyChanged(string propertyName)
{
this.NotifyPropertyChanged(PropertyChanged, propertyName, WaitOnNotifyPropertyChanged);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public bool WaitOnNotifyCollectionChanged
return result;
}

public void OnPropertyChanged(string propertyName)
public virtual void OnPropertyChanged(string propertyName)
{
this.NotifyPropertyChanged(PropertyChanged, propertyName, WaitOnNotifyPropertyChanged);
}
Expand Down

0 comments on commit 69d10bc

Please sign in to comment.