Exemple #1
0
                /// <summary>
                /// Raises the property change notification for the specified <see cref="ObservableObject"/>.
                /// </summary>
                /// <param name="observable">The target observable.</param>
                /// <param name="propertyName">The name of the property that changed.</param>
                public void Raise(ObservableObject observable, string propertyName)
                {
                    if (string.IsNullOrEmpty(propertyName))
                    {
                        observable.OnPropertyChanged(EventArgsCache.ObjectPropertyChanged);

                        return;
                    }

                    observable.ValidateProperty(propertyName);

                    observable.OnPropertyChanged(new PropertyChangedEventArgs(propertyName));
                }
Exemple #2
0
                /// <summary>
                /// Raises the property change notification for the specified <see cref="ObservableObject"/>.
                /// </summary>
                /// <param name="observable">The target observable.</param>
                /// <param name="propertyName">The name of the property that changed.</param>
                void IRaiseChanged.Raise(ObservableObject observable, string propertyName)
                {
                    if (string.IsNullOrEmpty(propertyName))
                    {
                        observable.OnPropertyChanged(EventArgsCache.ObjectPropertyChanged);

                        return;
                    }

                    Raise(observable, propertyName);

                    if (TryGetValue(propertyName, out string[] properties))