ValueItem<T>
Wraps a value so it can participate in property-change-aware binding. Assigning Value raises PropertyChanged, even when the assigned value is unchanged.
Definition
Namespace:Telerik.WinControls.UI.Data
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
The type of value stored by the wrapper.
Syntax:
public class ValueItem<T> : INotifyPropertyChanged
Inheritance: objectValueItem<T>
Implements:
Constructors
Creates a wrapper whose value is default for T.
public ValueItem()
Creates a wrapper initialized with the specified value.
public ValueItem(T item)
The value to wrap.
Properties
Gets or sets the wrapped value. Every assignment raises PropertyChanged for Value.
public T Value { get; set; }
Methods
Raises PropertyChanged with the specified property name.
protected virtual void OnPropertyChanged(string propertyName)
The name of the property that changed.
Events
Occurs whenever Value is assigned, including when the new value equals the current value.
public event PropertyChangedEventHandler PropertyChanged
Implements:
Operators
Extracts the wrapped value.
public static explicit operator T(ValueItem<T> value)
The wrapper to convert.
Returns:T
The value stored by value.