Class ItemSelectionHelper<T>
Exposes an ObservableCollection of T and a SelectedItem property for binding purposes.
Inheritance
System.Object
ItemSelectionHelper<T>
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
public class ItemSelectionHelper<T> : INotifyPropertyChanged
Type Parameters
Name | Description |
---|---|
T | The type of items. |
Properties
| Improve this Doc View SourceItems
Gets or sets the items.
Declaration
public ObservableCollection<T> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<T> | The items. |
SelectedItem
Gets or sets the selected item.
Declaration
public T SelectedItem { get; set; }
Property Value
Type | Description |
---|---|
T | The selected item. |
Events
| Improve this Doc View SourcePropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged