MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
14.93k stars 3.4k forks source link

The DialogHost. Show() method affects the rendering speed of the UI when multiple rows are selected in the DataGrid #3336

Open fzhxhdd888 opened 9 months ago

fzhxhdd888 commented 9 months ago

Bug explanation

After using the DialogHost. Show() method, if multiple rows (over 10000 rows) are selected in the DataGrid, it will seriously affect the rendering speed of the UI. At present, I have found this issue on many computers. If the DataGrid data exceeds tens of thousands of rows, when performing a select all operation, the UI may even lag for more than ten seconds. The same amount of data results in a fast rendering speed before using the DialogHost. Show() method. Visual Studio performance probe analysis was used and it was found that the stuck time was used for GC.

Version

4.9.0

Keboo commented 9 months ago

@fzhxhdd888 are you able to provide a sample of your setup? Is the DataGrid inside of the DialogHost? Do you have virtualization enabled on the DataGrid?

fzhxhdd888 commented 9 months ago

https://github.com/fzhxhdd888/WpfMaterialDataGridTest

The above link is a small case study. Currently, I have tried many computers with this issue. There are also a small number of computers that have no issues, so I am very confused.