Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace ArrayList in ItemContainerGenerator with List<EmptyGroupItem> #9432

Merged
merged 2 commits into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,8 @@ void AddEmptyGroupItem(CollectionViewGroup group)

// add it to the list of placeholder items (this keeps it from being GC'd)
if (_emptyGroupItems == null)
_emptyGroupItems = new ArrayList();
_emptyGroupItems = new List<EmptyGroupItem>();

_emptyGroupItems.Add(emptyGroupItem);
}

Expand Down Expand Up @@ -2798,7 +2799,7 @@ void OnRefresh()
private ReadOnlyCollection<object> _itemsReadOnly;
private GroupStyle _groupStyle;
private ItemContainerGenerator _parent;
private ArrayList _emptyGroupItems;
private List<EmptyGroupItem> _emptyGroupItems;
private int _alternationCount;

private Type _containerType; // type of containers on the recycle queue
Expand Down
Loading