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)); } }
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)); } }