UWP TreeView UI Deadlock - loading time from less than 1 sec to more than 10 sec - first run against new run
问题 I have a major performance issue on a TreeView both in terms of loading time as well as a deadlock of the UI. private async Task LoadTreeAsync() { List<VPazVisit> aList = new List<VPazVisit>(); if (_sorting == "") { _sorting = await ApplicationData.Current.LocalSettings.ReadAsync<string>("TreeViewSort"); } treeView.Visibility = Visibility.Collapsed; Patients.Clear(); switch (_sorting) { default: case "DescDate": aList = await Task.Run(() => App.gDataContext.Cache.VPazVisit .OrderByDescending