Click or drag to resize

ItemsControllerTItem Class

Helper class for list boxed 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.3179.0 (4.8.3179.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 methodItemsControllerTItemInitializes 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 methodDisposeReleases all resources used by the ItemsControllerTItem
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 
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 
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