Class NameValueItem<T>
Name and value object useful for data binding operations.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.ScheduleView
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class NameValueItem<T> : INotifyPropertyChanged
Type Parameters
T
Type of value. |
Constructors
NameValueItem(T, String)
Initializes a new instance of the NameValueItem<T> class.
Declaration
public NameValueItem(T value, string name)
Parameters
T
value
The value. |
System.String
name
The name. |
NameValueItem(T, String, Boolean)
Initializes a new instance of the NameValueItem<T> class.
Declaration
public NameValueItem(T value, string name, bool isSelected)
Parameters
T
value
The value. |
System.String
name
The name. |
System.Boolean
isSelected
Whether the item is selected. |
Properties
IsSelected
Gets or sets a value indicating whether this instance is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
System.Boolean
|
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
System.String
The name. |
Value
Gets the value.
Declaration
public T Value { get; }
Property Value
T
The value. |
Methods
OnPropertyChanged(String)
Raises the property changed.
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
System.String
propertyName
The name. |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|