Show / Hide Table of Contents

Class NotifyPropertyChanging

Base class for any object that can generate notifications and events when the value of a property will change.

Inheritance
object
NotifyPropertyChangeBase
NotifyPropertyChanging
Implements
INotifyPropertyChangeBase
IRefreshable
INotifyPropertyChanging
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 NotifyPropertyChanging : NotifyPropertyChangeBase, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanging

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 _)
Parameters
Type Name Description
string propertyName

Property name for the event to be triggered.

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

Events

| 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

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)
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