microsoft / microsoft/microsoft-ui-xaml

If the ItemsView scrolls the scrollbar, the memory of the item will not be released.

Open
#9,961 2 comments 1 reaction 0 assignees View on GitHub
area-ItemsView area-Performance bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

page
![Snipaste_2024-09-08_23-07-18](https://github.com/user-attachments/assets/e64f83d3-8b9c-4cd0-b2ac-57db59aa9302)
item
![Snipaste_2024-09-08_23-05-23](https://github.com/user-attachments/assets/dc97f8fd-29bf-4d87-8b46-3dd4cb1ccc5e)
source code
[TestApp.zip](https://github.com/user-attachments/files/16922665/TestApp.zip)

### Steps to reproduce the bug

https://github.com/user-attachments/assets/e6b99cdf-2b84-4091-ac5d-961673707ccf

### Expected behavior

After leaving the page, memory should be freed

### Screenshots

_No response_

### NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

### Windows version

Windows 11 (22H2): Build 22621

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by opening the attached TestApp.zip and reproducing the ItemsView scrolling scenario from the linked recording on Windows App SDK 1.6.0. Trace the ItemsView and page lifetime while leaving the page, then confirm that item memory is released after navigation away. Done means the reported retention no longer occurs in the supplied reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.