private void InitializeEvents() { List <string> SavedEvents = RegistrySaver.ReadStringsFromRegistry(RegistrySaver.RegCategoryClusterEvents); foreach (string SavedEventStr in SavedEvents) { ClusterEvent RestoredEvent = new ClusterEvent(); RestoredEvent.DeserializeFromString(SavedEventStr); ClusterEvents.Add(RestoredEvent); } ctrlListClusterEvents.ItemsSource = ClusterEvents; CollectionView view = (CollectionView)CollectionViewSource.GetDefaultView(ctrlListClusterEvents.ItemsSource); view.SortDescriptions.Add(new SortDescription("Category", ListSortDirection.Ascending)); view.SortDescriptions.Add(new SortDescription("Type", ListSortDirection.Ascending)); view.SortDescriptions.Add(new SortDescription("Name", ListSortDirection.Ascending)); }