Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

WinUI 3 DataGrid: Uses insane amounts of memory within StackPanel #5000

Open
1 of 14 tasks
cxnky opened this issue Aug 4, 2024 · 0 comments
Open
1 of 14 tasks

WinUI 3 DataGrid: Uses insane amounts of memory within StackPanel #5000

cxnky opened this issue Aug 4, 2024 · 0 comments
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior

Comments

@cxnky
Copy link

cxnky commented Aug 4, 2024

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?

  • This bug can be reproduced in the 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

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)

Other Windows Build number

11 Pro 23H2 22635

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)

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.

@cxnky cxnky added the bug 🐛 An unexpected issue that highlights incorrect behavior label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior
Projects
None yet
Development

No branches or pull requests

1 participant