This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Description Describe the bug
I have a datagrid which loads roughly 2k items within a StackPanel, I navigate to the page with the datagrid and the items load.
Memory usage without StackPanel: Jumps from 54.5MB without the datagrid loaded, to 96.3MB
Memory usage in a StackPanel: Jumps from 54.5MB to 535MB !
Regression
No response
Reproducible in sample app?
Steps to reproduce
1. Create a datagrid with 2k items
2. Navigate to the page and load the items on page load
3. Watch the memory usage.
Expected behavior
It shouldn't use more memory wrapped in a stackpanel
Screenshots
No response
Windows Build Number
Other Windows Build number
11 Pro 23H2 22635
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
Version 17.11.0 Preview 6.0
Device form factor
Desktop
Nuget packages
AssyntSoftware.WinUI3Controls - 2.2.1
CommunityToolkit.WinUI - 7.1.2
Microsoft.Extensions.{DependencyInjection, Hosting, Hosting.Abstractions, Http} - 8.0.0
Serilog - 4.0.0
RestSharp -
111.4.1
Additional context
No response
Help us help you
Yes, but only if others can assist.
Reactions are currently unavailable
Describe the bug
I have a datagrid which loads roughly 2k items within a StackPanel, I navigate to the page with the datagrid and the items load.
Memory usage without StackPanel: Jumps from 54.5MB without the datagrid loaded, to 96.3MB
Memory usage in a StackPanel: Jumps from 54.5MB to 535MB!
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
It shouldn't use more memory wrapped in a stackpanel
Screenshots
No response
Windows Build Number
Other Windows Build number
11 Pro 23H2 22635
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
Version 17.11.0 Preview 6.0
Device form factor
Desktop
Nuget packages
AssyntSoftware.WinUI3Controls - 2.2.1
CommunityToolkit.WinUI - 7.1.2
Microsoft.Extensions.{DependencyInjection, Hosting, Hosting.Abstractions, Http} - 8.0.0
Serilog - 4.0.0
RestSharp -
111.4.1
Additional context
No response
Help us help you
Yes, but only if others can assist.