Which component(s) does this affect?
Problem Statement
When auto-refresh fires, setting ItemsSource on a DataGrid clears the current sort state. If the user sorted by Total CPU descending, the sort is lost after auto-refresh and the data reverts to the default order.
Proposed Solution
Save the current SortDescriptions before setting ItemsSource and restore them after. This should be applied to all DataGrid refresh paths in QueryPerformanceContent.
Which component(s) does this affect?
Problem Statement
When auto-refresh fires, setting
ItemsSourceon a DataGrid clears the current sort state. If the user sorted by Total CPU descending, the sort is lost after auto-refresh and the data reverts to the default order.Proposed Solution
Save the current
SortDescriptionsbefore settingItemsSourceand restore them after. This should be applied to all DataGrid refresh paths inQueryPerformanceContent.