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) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
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 methodComposablePartWithContextTInitializes 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 methodFinalizeAllows 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
 NameDescription
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Top
See Also