private void OnPasswordPropertyChanged() { Category category = this; while (category != null) { category.OnPropertyChanged("NestedPasswords"); category = category.Parent; } }
/// <summary> /// Occurs when the list of passwords has changed. /// </summary> protected void OnPasswordsChanged(object sender, NotifyEventArgs <Password> e) { OnPropertyChanged("Passwords"); Category parent = Parent; while (parent != null) { parent.OnPropertyChanged("NestedPasswords"); parent = parent.Parent; } }