Catel.Data.ObservableObject.RaisePropertyChanged C# (CSharp) 메소드

RaisePropertyChanged() 보호된 메소드

protected RaisePropertyChanged ( string propertyName ) : void
propertyName string
리턴 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