-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version]
See the attached sample Visual Studio Project "WpfDataGrid5".
System environment: 2 PC's (PC1, PC2), Windows 10 Enterprise 1909, .Net Framework 4.8
- build the attached Visual Studio solution
- Copy WpfDataGrid5.exe to PC2, e.g. C:\temp
- Create a RDP session from PC1 to PC2
- Inside the RDP session start WpfDataGrid5.exe
- Focus any DataGridCell and press Ctrl-A to select all DataGridCells
=> Selection is visualized pretty fast; Unselect is also fast - Open the MenuItem "Open Menu..." and close the MenuItem again
- In the DataGrid press Ctrl-A to select all DataGridCells
=> Now we have a delayed visualization of the selection (about 3 seconds, depending on hardware)
The DataGrid uses virtualization (column and row virtualization).
Nevertheless: The more rows are bound to the DataGrid (1000 rows in this sample) the slower SelectAll() will perform.
We have a similar problem with scrolling up/down/left/right in the DataGrid using the keyboard arrow keys.
Overall, it feels like a slowdown of WPF applications on Remote Desktop in contrast to Windows Server 2008 R2 (where the problem doesn't exist).
This problem does not occur without RDP.
We are currently migrating our Windows Server 2008 R2 RDP farm to Windows Server 2019.
But users are complaining about the poor performance on the new platform.
So this problem is a kind of show stopper for us, so any help is appreciated.
Notice:
When the MenuItem is clicked, the WpfDataGrid5 process loads the following DLL's:
- Accessibility.ni.dll
- oleacc.dll
- oleaccrc.dll
- sxs.dll
These DLL's were not loaded before.
The Visual Studio Profiler tells me that most CPU usage takes place in
DataGrid.OnSelectedCellsChanged() : RaiseAutomationCellSelectedEvent()
[WpfDataGrid5.zip] (https://aka.ms/dc/file?name=B67d628860bd6452284af10b566b4adc1637655565451237885_WpfDataGrid5.zip&tid=67d628860bd6452284af10b566b4adc1637655565451237885)
Original Comments
Feedback Bot on 8/26/2021, 00:24 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)