Show / Hide Table of Contents

Class NotifyPropertyChange

Clase base para los objetos que puedan notificar sobre el cambio del valor de una de sus propiedades, tanto antes como después de haber ocurrido dicho cambio.

Inheritance
object
NotifyPropertyChangeBase
NotifyPropertyChange
Implements
INotifyPropertyChangeBase
IRefreshable
INotifyPropertyChanging
INotifyPropertyChanged
Inherited Members
NotifyPropertyChangeBase.OnInitialize(NotifyPropertyChangeBase.IPropertyBroadcastSetup)
NotifyPropertyChangeBase.Refresh()
NotifyPropertyChangeBase.Subscribe(PropertyInfo, PropertyChangeObserver)
NotifyPropertyChangeBase.Subscribe(PropertyChangeObserver)
NotifyPropertyChangeBase.Subscribe(Expression<Func<object>>, PropertyChangeObserver)
NotifyPropertyChangeBase.Unsubscribe(PropertyChangeObserver)
NotifyPropertyChangeBase.Unsubscribe(PropertyInfo)
NotifyPropertyChangeBase.Unsubscribe(Expression<Func<object>>)
NotifyPropertyChangeBase.Change<T>(ref T, T, string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.Mvvm.dll
Syntax
public abstract class NotifyPropertyChange : NotifyPropertyChangeBase, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanging, INotifyPropertyChanged

Methods

| Edit this page View Source

OnDoChange<T>(ref T, T, string)

Performs the actual value change on a backing field for a property.

Declaration
protected override void OnDoChange<T>(ref T field, T value, string propertyName)
Parameters
Type Name Description
T field

Backing field to be updated.

T value

New value to be set onto the backing field.

string propertyName

Name of the property.

Type Parameters
Name Description
T

Type of the backing field for the property.

Overrides
NotifyPropertyChangeBase.OnDoChange<T>(ref T, T, string)
| Edit this page View Source

RaisePropertyChangeEvent(in string, in PropertyChangeNotificationType)

Raises the appropriate property change notification event.

Declaration
protected override sealed void RaisePropertyChangeEvent(in string propertyName, in PropertyChangeNotificationType type)
Parameters
Type Name Description
string propertyName

Property name for the event to be triggered.

PropertyChangeNotificationType type
Overrides
NotifyPropertyChangeBase.RaisePropertyChangeEvent(in string, in PropertyChangeNotificationType)

Events

| Edit this page View Source

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler
| Edit this page View Source

PropertyChanging

Occurs when a property value is changing.

Declaration
public event PropertyChangingEventHandler? PropertyChanging
Event Type
Type Description
PropertyChangingEventHandler

Implements

INotifyPropertyChangeBase
IRefreshable
INotifyPropertyChanging
INotifyPropertyChanged

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
ObservingCommandBuilder.Create<T>(T, Action)
ObservingCommandBuilder.Create<T>(T, Action<object?>)
ObservingCommandBuilder.Create<T>(T, Func<object?, Task>)
ObservingCommandBuilder.Create<T>(T, Func<Task>)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
NotifyPropertyChangeBaseExtensions.Subscribe<T>(T, Expression<Func<T, object?>>, PropertyChangeObserver)
NotifyPropertyChangeBaseExtensions.Unsubscribe<T>(T, Expression<Func<T, object?>>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX