Class ObservableObject<T>
Class that wraps an object, so that other classes can notify for Change events. Typically, this class is set as a Dependency Property on DependencyObjects, and allows other classes to observe any changes in the Value.
Inheritance
ObservableObject<T>
Implements
Namespace: Sartorius.SAF.Presentation.Infrastructure
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class ObservableObject<T> : FrameworkElement, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, INotifyPropertyChanged
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property that's wrapped in the Observable object |
Remarks
This class is required, because in Silverlight, it's not possible to receive Change notifications for Dependency properties that you do not own.
Fields
View SourceValueProperty
Identifies the Value property of the ObservableObject
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceValue
The value that's wrapped inside the ObservableObject.
Declaration
public T Value { get; set; }
Property Value
| Type | Description |
|---|---|
| T |
Events
View SourcePropertyChanged
Event that gets invoked when the Value property changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |