Class NotificationObject
Base class for items that support property notification.
Inheritance
Namespace: Algenta.Colectica.Model
Assembly: Algenta.Colectica.Model.dll
Syntax
public class NotificationObject : INotifyPropertyChanged
Remarks
This class provides basic support for implementing the
Properties
PropertyEventsSuspended
Gets a value indicating whether property events are suspended.
Declaration
public bool PropertyEventsSuspended { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
OnPropertyChanged(String)
Raises the PropertyChanged event.
Declaration
public void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Name of the property. |
PropagateChildChanges(INotifyCollectionChanged, String)
Propagates the child change events for a collection of items. Each existing item is monitored for changes, and when a change occurs a PropertyChanged event is raised for this IdentifiableBase object. Newly added items are also monitored.
Declaration
protected void PropagateChildChanges(INotifyCollectionChanged collection, string name)
Parameters
Type | Name | Description |
---|---|---|
INotifyCollectionChanged | collection | The collection to monitor for changes. |
System.String | name | The name of the property, used to raise PropertyChanged events for propagation. |
RaisePropertyChanged(String)
Raises this object's PropertyChanged event for each of the properties.
Declaration
protected virtual void RaisePropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
RaisePropertyChanged(String[])
Raises this object's PropertyChanged event for each of the properties.
Declaration
protected void RaisePropertyChanged(params string[] propertyNames)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | propertyNames | The properties that have a new value. |
RaisePropertyChanged<T>(Expression<Func<T>>)
Raises this object's PropertyChanged event.
Declaration
protected void RaisePropertyChanged<T>(Expression<Func<T>> propertyExpression)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T>> | propertyExpression | A Lambda expression representing the property that has a new value. |
Type Parameters
Name | Description |
---|---|
T | The type of the property that has a new value |
ResumePropertyEvents()
Resumes issuing property events.
Declaration
public void ResumePropertyEvents()
SuspendPropertyEvents()
Suspends issuing property events.
Declaration
public void SuspendPropertyEvents()
Events
PropertyChanged
Indicates that a property's value has changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |