Click or drag to resize

ItemsControllerTItem Class

Helper class for list boxes and other item controls with single-selection mode.
Inheritance Hierarchy
SystemObject
  Altaxo.Gui.CommonItemsControllerTItem

Namespace: Altaxo.Gui.Common
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class ItemsController<TItem> : INotifyPropertyChanged, 
	IDisposable

Type Parameters

TItem
The type of the item.

The ItemsControllerTItem type exposes the following members.

Constructors
 NameDescription
Public methodItemsControllerTItem Initializes a new instance of the ItemsControllerTItem class.
Public methodItemsControllerTItem(SelectableListNodeList, ActionTItem) Initializes a new instance of the ItemsControllerTItem class.
Public methodItemsControllerTItem(SelectableListNodeList, ActionValueTupleTItem, Int32, TItem, Int32) Initializes a new instance of the ItemsControllerTItem class.
Public methodItemsControllerTItem(SelectableListNodeList, TItem, ActionTItem) Initializes a new instance of the ItemsControllerTItem class.
Top
Properties
 NameDescription
Public propertyItems Gets or sets the items. Used to bind the items to the Gui element.
Public propertySelectedIndex Gets the index of the selected item, or -1 if nothing is selected.
Public propertySelectedItem Gets or sets the selected item. Used to bind the Selecteditem property of the Gui element.
Public propertySelectedValue Gets or sets the selected value. It is not recommended to bind the SelectedValue property of the Gui element to this; better bind the SelectedItem property of the Gui element to SelectedItem.
Top
Methods
 NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
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)
Protected methodGetIndexOf Gets the index of the specified item.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitialize(SelectableListNodeList, ActionTItem) Initializes a new instance of the ItemsControllerTItem class.
Public methodInitialize(SelectableListNodeList, TItem, ActionTItem) Initializes a new instance of the ItemsControllerTItem class.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnPropertyChanged Raises the PropertyChanged event.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChanged Occurs when a property value changes.
Top
See Also