Represents a collection of attachable objects that can be associated with an owner.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Type Parameters:
TOwner
The type of the owner object.
TObject
The type of attachable objects in the collection.
Syntax:
public class AttachableObjectCollection<TOwner, TObject> : ObservableCollection<TObject>, IList<TObject>, ICollection<TObject>, IList, ICollection, IReadOnlyList<TObject>, IReadOnlyCollection<TObject>, IEnumerable<TObject>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged where TOwner : class where TObject : AttachableObject<TOwner>
Inheritance: objectCollection<TObject>ObservableCollection<TObject>AttachableObjectCollection<TOwner, TObject>
Derived Classes:
Implements:
Inherited Members
Methods
Removes all items from the collection and detaches them from the owner.
protected override void ClearItems()
Overrides:
Inserts an item at the specified index and attaches it to the owner.
protected override void InsertItem(int index, TObject item)
The zero-based index at which the item should be inserted.
itemTObjectThe item to insert.
Overrides:
Removes the item at the specified index and detaches it from the owner.
protected override void RemoveItem(int index)
The zero-based index of the item to remove.
Overrides:
Replaces the item at the specified index and updates owner associations.
protected override void SetItem(int index, TObject item)
The zero-based index of the item to replace.
itemTObjectThe new item to set at the specified index.
Overrides: