void Add(NotifyCollectionChangedEventArgs args)
        {
            var startIndex = args.NewStartingIndex > -1 ? args.NewStartingIndex : IndexOf(args.NewItems[0]);

            startIndex = AdjustPositionForHeader(startIndex);
            var count = args.NewItems.Count;

            if (count == 1)
            {
                _notifier.NotifyItemInserted(this, startIndex);
                return;
            }

            _notifier.NotifyItemRangeInserted(this, startIndex, count);
        }
Пример #2
0
 public void NotifyItemRangeInserted(IItemSource group, int localIndex, int count)
 {
     localIndex = GetAbsolutePosition(group, localIndex);
     notifier.NotifyItemRangeInserted(this, localIndex, count);
 }