New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class NameValueItem<T> : INotifyPropertyChanged

Inheritance: objectNameValueItem<T>

Implements: INotifyPropertyChanged

Constructors

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

C#
public NameValueItem(T value, string name, bool isSelected)
Parameters:valueT

The value.

namestring

The name.

isSelectedbool

Whether the item is selected.

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

C#
public NameValueItem(T value, string name)
Parameters:valueT

The value.

namestring

The name.

Properties

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

C#
public bool IsSelected { get; set; }
Property Value:

True if this instance is selected; otherwise, false.

Gets the name.

C#
public string Name { get; }
Property Value:

The name.

Gets the value.

C#
public T Value { get; }
Property Value:

The value.

Methods

Raises the property changed.

C#
protected void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

The name.

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged