public MixedItemSourceCollection(ItemCollectionBase <TItem> itemCollection, IEnumerable sourceCollection, int itemCollectionSplitIndex) { IndexedSourceCollection = new IndexedEnumerable(sourceCollection); SourceCollection = sourceCollection; ItemCollectionSplitIndex = itemCollectionSplitIndex >= 0 ? itemCollectionSplitIndex.Clamp(0, itemCollection.Count) : itemCollection.Count; ItemCollection = itemCollection; if (SourceCollection is INotifyCollectionChanged incc) { incc.CollectionChanged += OnSourceCollectionChanged; } ((INotifyCollectionChanged)itemCollection).CollectionChanged += OnItemCollectionChanged; }
protected ItemCollectionSourceBase(IItemsHost <TItem> itemsHost, ItemCollectionBase <TControl, TItem> itemCollection) { ItemsHost = itemsHost; ItemCollection = itemCollection; }
public ItemDependencyObjectCollection(ItemCollectionBase <TItemsControl, TItem> itemCollection) { ItemCollection = itemCollection; }
// ReSharper disable once SuggestBaseTypeForParameter protected ItemCollectionSelectorAdvisor(ISelector <TItem> selector, ItemCollectionBase <TControl, TItem> collection) : base(selector, collection) { collection.AttachObserver(this); }
public ItemCollectionSource(IItemsHost <TItem> itemsHost, ItemCollectionBase <TControl, TItem> itemCollection) : base(itemsHost, itemCollection) { }
public VirtualItemCollectionSource(IVirtualItemsHost <TItem> itemsHost, ItemCollectionBase <TControl, TItem> itemCollection) : base(itemsHost, itemCollection) { VirtualCollection = new VirtualItemCollection(itemCollection); itemsHost.VirtualSource = VirtualCollection; }