microsoft / microsoft/microsoft-ui-xaml
The UWP pivot is experiencing performance issues while using the DataGrid inside the pivot item.
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
### Describe the bug
We have used the UWP DataGrid control inside the UWP PivotItem. While switching between pivot items, a performance delay occurs due to the number of columns and rows. Even with only 23 columns and 33 rows displayed, we are still experiencing performance delays.
Can you suggest a solution?
### Steps to reproduce the bug
Step 1: Run the sample.
Step 2: Click Sheet2 pivot item.
**Expected behavior:** The performance delay should not occur while switching pivot items.
**Observed behavior:** A performance delay occurs while switching pivot items.
**Sample**
[Pivot_PerformanceIssue.zip](https://github.com/user-attachments/files/17359616/Pivot_PerformanceIssue.zip)
### Expected behavior
The performance delay should not occur while switching pivot items.
### Screenshots
https://github.com/user-attachments/assets/e33d04ea-41d6-4ce4-8756-690d0c8ccc34
### NuGet package version
None
### Windows version
Windows 11 (22H2): Build 22621
### Additional context
_No response_
Contributor guide
Research direction
Run the attached Pivot_PerformanceIssue.zip sample on Windows 11 and reproduce the delay by switching to the Sheet2 pivot item with the DataGrid visible. Compare the pivot-switch behavior with the reported 23 columns and 33 rows, then verify that switching no longer has the reported performance delay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100