Click or drag to resize

ComposablePartWithContextT Class

Base class for a view model with a typed composition context.
Inheritance Hierarchy
SystemObject
  TomsToolbox.WpfObservableObjectBase
    TomsToolbox.WpfObservableObject
      TomsToolbox.Wpf.CompositionComposablePartWithContextT

Namespace:  TomsToolbox.Wpf.Composition
Assembly:  TomsToolbox.Wpf.Composition (in TomsToolbox.Wpf.Composition.dll)
Syntax
public abstract class ComposablePartWithContext<T> : ObservableObject, 
	IComposablePartWithContext
where T : class

Type Parameters

T
The type of the composition context

The ComposablePartWithContextT type exposes the following members.

Constructors
  NameDescription
Protected methodComposablePartWithContextT
Initializes a new instance of the ComposablePartWithContextT class
Top
Properties
  NameDescription
Public propertyCompositionContext
Gets the composition context.
Public propertyDispatcher
Gets the dispatcher of the thread where this object was created.
(Inherited from ObservableObject.)
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.
(Inherited from ObservableObjectBase.)
Protected methodOnCompositionContextChanged
Called when the composition context has changed. The base implementations raised the PropertyChanged event.
Protected methodOnDataErrorsEvaluated
Called when data errors have been evaluated. Used e.g. to track data errors for each property.
(Inherited from ObservableObjectBase.)
Protected methodOnErrorsChanged
Raises the ErrorsChanged event.
(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, 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.)
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.)
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from ObservableObjectBase.)
Top
Extension Methods
See Also