Class
NameValueItem<T>

Name and value object useful for data binding operations.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Type Parameters:

T

Type of value.

Syntax:

cs-api-definition
public class NameValueItem<T> : INotifyPropertyChanged

Inheritance: objectNameValueItem<T>

Implements: INotifyPropertyChanged

Constructors

NameValueItem(T, string)

Initializes a new instance of the NameValueItem<T> class.

Declaration

cs-api-definition
public NameValueItem(T value, string name)

Parameters

value

T

The value.

name

string

The name.

NameValueItem(T, string, bool)

Initializes a new instance of the NameValueItem<T> class.

Declaration

cs-api-definition
public NameValueItem(T value, string name, bool isSelected)

Parameters

value

T

The value.

name

string

The name.

isSelected

bool

Whether the item is selected.

Properties

IsSelected

Gets or sets a value indicating whether this instance is selected.

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

True if this instance is selected; otherwise, false.

Name

Gets the name.

Declaration

cs-api-definition
public string Name { get; }

Property Value

string

The name.

Value

Gets the value.

Declaration

cs-api-definition
public T Value { get; }

Property Value

T

The value.

Methods

OnPropertyChanged(string)

Raises the property changed.

Declaration

cs-api-definition
protected void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

The name.

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged