Click or drag to resize

NotifyChangedValueT Class

Helper class that wraps a single value of type T and implements the INotifyPropertyChanged interface, so that changes to the value can be monitored by the GUI. This class is required when using a DataGrid, since plain values (such as String, Int32, etc.) are not directly editable.
Inheritance Hierarchy
SystemObject
  Altaxo.GuiNotifyChangedValueT

Namespace: Altaxo.Gui
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public class NotifyChangedValue<T> : INotifyPropertyChanged

Type Parameters

T
Type of the value to wrap.

The NotifyChangedValueT type exposes the following members.

Constructors
 NameDescription
Public methodNotifyChangedValueT Initializes a new instance of the NotifyChangedValueT class, setting the value to its default.
Public methodNotifyChangedValueT(T) Initializes a new instance of the NotifyChangedValueT class with the given value.
Top
Properties
 NameDescription
Public propertyValue Gets or sets the wrapped value. If the new value differs from the old one, the PropertyChanged event is raised.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChangedOccurs when a property value changes.
Top
See Also