protected override void OnPropertyChanged(PropertyChangedEventArgs e) { base.OnPropertyChanged(e); KryptonBreadCrumbItem parent = this.Parent; if (parent != null) { while (parent.Parent != null) { parent = parent.Parent; } parent.OnPropertyChanged(e); } }
/// <summary> /// Raises the PropertyChanged event. /// </summary> /// <param name="e">A PropertyChangedEventArgs containing the event data.</param> protected override void OnPropertyChanged(PropertyChangedEventArgs e) { // Raise event via the base class base.OnPropertyChanged(e); // If we have a parent instance KryptonBreadCrumbItem parent = Parent; if (parent != null) { // Find the root instance while (parent.Parent != null) { parent = parent.Parent; } // Raise event in the root parent.OnPropertyChanged(e); } }