Catel.Data.ObservableObject.RaisePropertyChanged C# (CSharp) Méthode

RaisePropertyChanged() protected méthode

protected RaisePropertyChanged ( string propertyName ) : void
propertyName string
Résultat void
        protected void RaisePropertyChanged(string propertyName)
        {
            BaseNotifyCalled = true;
            var handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

Usage Example

        /// <summary>
        /// Raises the property changed event for the specified <see cref="ObservableObject"/>.
        /// </summary>
        /// <param name="sender">The observable object.</param>
        /// <exception cref="ArgumentNullException">The <paramref name="sender"/> is <c>null</c>.</exception>
        public static void RaiseAllPropertiesChanged(this ObservableObject sender)
        {
            Argument.IsNotNull("sender", sender);

            sender.RaisePropertyChanged(sender, string.Empty);
        }
ObservableObject