protected override void Add(int insertionIndex, int count)
        {
            ICollectionViewManager viewManager = GetCollectionViewManager();

            for (int i = 0; i < count; i++)
            {
                int index = insertionIndex + i;
                viewManager.Insert(_view, index, GetItemFromTemplate(index));
            }
        }
        protected override void Replace(int startIndex, int count)
        {
            ICollectionViewManager viewManager = GetCollectionViewManager();

            for (int i = 0; i < count; i++)
            {
                int index = startIndex + i;
                viewManager.RemoveAt(_view, index);
                viewManager.Insert(_view, index, GetItemFromTemplate(index));
            }
        }
        protected override void Refresh()
        {
            ICollectionViewManager viewManager = GetCollectionViewManager();

            viewManager.Clear(_view);
            int count = ItemsSource.Count();

            for (int i = 0; i < count; i++)
            {
                viewManager.Insert(_view, i, GetItemFromTemplate(i));
            }
        }
Beispiel #4
0
        protected override void Add(int insertionIndex, int count)
        {
            var view = GetView();

            if (view == null)
            {
                return;
            }
            ICollectionViewManager viewManager = GetCollectionViewManager(view);

            for (int i = 0; i < count; i++)
            {
                int index = insertionIndex + i;
                viewManager.Insert(view, index, GetItemFromTemplate(view, index));
            }
        }
Beispiel #5
0
        protected override void Refresh()
        {
            var view = GetView();

            if (view == null)
            {
                return;
            }
            ICollectionViewManager viewManager = GetCollectionViewManager(view);

            viewManager.Clear(view);
            int count = ItemsSource.Count();

            for (int i = 0; i < count; i++)
            {
                viewManager.Insert(view, i, GetItemFromTemplate(view, i));
            }
        }