Show / Hide Table of Contents

Class NotificationObject

Base class for items that support property notification.

Inheritance
object
NotificationObject
BasedOn
CodeValue
Contributor
CustomField
CustomFieldDefinition
DublinCore
IdentifiableBase
InternationalIdentifier
RepositoryConnectionInfo
UserAttribute
UserId
ProgressMonitor
RelatedItemAnnotation
WorkflowServerConnectionInfo
Implements
INotifyPropertyChanged
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model
Assembly: Algenta.Colectica.Model.dll
Syntax
[DataContract(Namespace = "http://ns.colectica.com/2009/07/")]
[JsonObject(MemberSerialization.OptOut)]
public class NotificationObject : INotifyPropertyChanged
Remarks

This class provides basic support for implementing the INotifyPropertyChanged interface and for marshalling execution to the UI thread.

Constructors

NotificationObject()

Default constructor

Declaration
public NotificationObject()

Properties

PropertyEventsSuspended

Gets a value indicating whether property events are suspended.

Declaration
[JsonIgnore]
[UIHint("skip")]
public bool PropertyEventsSuspended { get; }
Property Value
Type Description
bool

true if property events are suspended; otherwise, false.

Methods

OnPropertyChanged(string)

Raises the PropertyChanged event.

Declaration
public void OnPropertyChanged(string propertyName)
Parameters
Type Name Description
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.

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
string propertyName

ResumePropertyEvents()

Resumes issuing property events.

Declaration
public void ResumePropertyEvents()

SuspendPropertyEvents()

Suspends issuing property events.

Declaration
public void SuspendPropertyEvents()

WatchCollection(INotifyCollectionChanged, string)

Watch collections for property changed events

Declaration
protected virtual void WatchCollection(INotifyCollectionChanged property, string name)
Parameters
Type Name Description
INotifyCollectionChanged property
string name

WatchProperties()

Virtual method to be implemented by subclasses

Declaration
protected virtual void WatchProperties()

WatchProperty(INotifyPropertyChanged, string)

Watch for property changed events

Declaration
protected virtual void WatchProperty(INotifyPropertyChanged property, string name)
Parameters
Type Name Description
INotifyPropertyChanged property
string name

Events

PropertyChanged

Indicates that a property's value has changed.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler

Implements

INotifyPropertyChanged

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX