Click or drag to resize

ObservableObject Class

Like ObservableObjectBase, with an additional dispatcher field to track the owning thread. This version is not serializable, since Dispatcher is not.
Inheritance Hierarchy

Namespace:  TomsToolbox.Desktop
Assembly:  TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 1.0.74.0
Syntax
public abstract class ObservableObject : ObservableObjectBase

The ObservableObject type exposes the following members.

Constructors
  NameDescription
Protected methodObservableObject
Initializes a new instance of the ObservableObject class
Top
Properties
  NameDescription
Public propertyDispatcher
Gets the dispatcher of the thread where this object was created.

[NotNull]

Top
Methods
  NameDescription
Protected methodDetachEventSource
Detaches the event source.
(Inherited from ObservableObjectBase.)
Protected methodDetachEventSources
Detaches all event sources.
(Inherited from ObservableObjectBase.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from ObservableObjectBase.)
Protected methodGetDataErrors
Gets the validation errors for a specified property or for the entire entity.

[NotNull, ItemNotNull]

(Inherited from ObservableObjectBase.)
Protected methodOnDataErrorsEvaluated
Called when data errors have been evaluated. Used e.g. to track data errors for each property.
(Inherited from ObservableObjectBase.)
Protected methodOnPropertyChanged(String)
Raises the PropertyChanged event for the property with the specified name.

[NotifyPropertyChangedInvocator]

(Inherited from ObservableObjectBase.)
Protected methodOnPropertyChangedT(ExpressionFuncT)
Raises the PropertyChanged event for the property identified by the specified property expression.

[NotifyPropertyChangedInvocator]

(Inherited from ObservableObjectBase.)
Protected methodRelayEventsOf(INotifyPropertyChanged)
Relays the property changed events of the source object. The properties to relay must be declared with the RelayedEventAttribute.
(Inherited from ObservableObjectBase.)
Protected methodRelayEventsOf(INotifyPropertyChanged, INotifyPropertyChanged)
Relays the property changed events of the source object (if not null) and detaches the old source (if not null).
(Inherited from ObservableObjectBase.)
Protected methodSetPropertyT(T, T, ExpressionFuncT)
Sets the property and raises the PropertyChanged event for the property identified by the specified property expression.

[NotifyPropertyChangedInvocator]

(Inherited from ObservableObjectBase.)
Protected methodSetPropertyT(T, T, String)
Sets the property and raises the PropertyChanged event for the property identified by the specified property expression.

[NotifyPropertyChangedInvocator]

(Inherited from ObservableObjectBase.)
Protected methodSetPropertyT(T, T, ActionT, T, String)
Sets the property and raises the PropertyChanged event for the property identified by the specified property expression.

[NotifyPropertyChangedInvocator]

(Inherited from ObservableObjectBase.)
Protected methodSetPropertyT(T, T, ExpressionFuncT, ActionT, T)
Sets the property and raises the PropertyChanged event for the property identified by the specified property expression.

[NotifyPropertyChangedInvocator]

(Inherited from ObservableObjectBase.)
Protected methodSetPropertyT(T, T, String, ActionT, T)
Sets the property and raises the PropertyChanged event for the property identified by the specified property expression.

[NotifyPropertyChangedInvocator]

(Inherited from ObservableObjectBase.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from ObservableObjectBase.)
Top
Extension Methods
  NameDescription
Public Extension MethodSafeCastT
Performs a cast from object to T, avoiding possible null violations if T is a value type.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
See Also