diff --git a/src/RevitParamsChecker/Resources/CustomDataGrid.xaml b/src/RevitParamsChecker/Resources/CustomDataGrid.xaml index 0201f1615..a85b55a33 100644 --- a/src/RevitParamsChecker/Resources/CustomDataGrid.xaml +++ b/src/RevitParamsChecker/Resources/CustomDataGrid.xaml @@ -109,6 +109,9 @@ x:Key="CustomDataGridColumnHeaderStyle" BasedOn="{StaticResource DefaultUiDataGridColumnHeaderStyle}" TargetType="DataGridColumnHeader"> + diff --git a/src/RevitParamsChecker/Resources/CustomExpanderStyle.xaml b/src/RevitParamsChecker/Resources/CustomExpanderStyle.xaml index e43649814..22c6d2b15 100644 --- a/src/RevitParamsChecker/Resources/CustomExpanderStyle.xaml +++ b/src/RevitParamsChecker/Resources/CustomExpanderStyle.xaml @@ -54,25 +54,25 @@ Background="Transparent"> - + - + diff --git a/src/RevitParamsChecker/ViewModels/Results/CheckResultViewModel.cs b/src/RevitParamsChecker/ViewModels/Results/CheckResultViewModel.cs index 7f2eff743..b579eda02 100644 --- a/src/RevitParamsChecker/ViewModels/Results/CheckResultViewModel.cs +++ b/src/RevitParamsChecker/ViewModels/Results/CheckResultViewModel.cs @@ -28,7 +28,7 @@ internal class CheckResultViewModel : BaseViewModel { private readonly DelayAction _refreshViewDelay; private readonly RevitRepository _revitRepo; private readonly ObservableCollection _allElementResults; - private readonly PropertyGroupDescription _defaultGroupDescription; + private readonly PropertyGroupDescription _chunkGroupDescription; private string _elementsFilter; private ElementResultViewModel _selectedElementResult; private RuleViewModel _selectedRuleStamp; @@ -47,13 +47,13 @@ public CheckResultViewModel(ILocalizationService localization, CheckResult check _refreshViewDelay = new DelayAction(300, () => ElementResults.View.Refresh()); var availableProperties = GetEditableGroupProperties(_localization); GroupingProperties = new GroupDescriptionsViewModel(availableProperties, [availableProperties.First()]); - _defaultGroupDescription = new PropertyGroupDescription(nameof(ElementResultViewModel.ChunkName)); + _chunkGroupDescription = new PropertyGroupDescription(nameof(ElementResultViewModel.ChunkName)); if(_allElementResults.Count <= _chunkSize) { ResetGrouping(ElementResults, [availableProperties.First().PropertyGroupDescription]); } else { ResetGrouping( ElementResults, - [_defaultGroupDescription, availableProperties.First().PropertyGroupDescription]); + [availableProperties.First().PropertyGroupDescription, _chunkGroupDescription]); } PropertyChanged += ElementsFilterPropertyChanged; @@ -121,7 +121,6 @@ private void ElementResultsFilterHandler(object sender, FilterEventArgs e) { || result.RuleName?.IndexOf(filter, StringComparison.CurrentCultureIgnoreCase) >= 0 || result.Status?.IndexOf(filter, StringComparison.CurrentCultureIgnoreCase) >= 0 || result.Error?.IndexOf(filter, StringComparison.CurrentCultureIgnoreCase) >= 0 - || result.UserMark?.IndexOf(filter, StringComparison.CurrentCultureIgnoreCase) >= 0 || result.CategoryName?.IndexOf(filter, StringComparison.CurrentCultureIgnoreCase) >= 0; } } @@ -196,7 +195,7 @@ private void RegroupElements() { if(_allElementResults.Count <= _chunkSize) { ResetGrouping(ElementResults, groups); } else { - ResetGrouping(ElementResults, [_defaultGroupDescription, .. groups]); + ResetGrouping(ElementResults, [.. groups, _chunkGroupDescription]); } } } diff --git a/src/RevitParamsChecker/ViewModels/Results/ElementResultViewModel.cs b/src/RevitParamsChecker/ViewModels/Results/ElementResultViewModel.cs index 5f27c9794..1b294f738 100644 --- a/src/RevitParamsChecker/ViewModels/Results/ElementResultViewModel.cs +++ b/src/RevitParamsChecker/ViewModels/Results/ElementResultViewModel.cs @@ -13,7 +13,6 @@ internal class ElementResultViewModel : BaseViewModel { private readonly ILocalizationService _localization; private string _chunkName; private int _itemNumber; - private string _userMark; public ElementResultViewModel(ILocalizationService localization, ElementResult elementResult) { _localization = localization ?? throw new ArgumentNullException(nameof(localization)); @@ -39,11 +38,6 @@ public int ItemNumber { set => RaiseAndSetIfChanged(ref _itemNumber, value); } - public string UserMark { - get => _userMark; - set => RaiseAndSetIfChanged(ref _userMark, value); - } - public string CategoryName { get; } public string FileName { get; } diff --git a/src/RevitParamsChecker/Views/Controls/EditableListControl.xaml b/src/RevitParamsChecker/Views/Controls/EditableListControl.xaml index ddedf330e..b7e017faa 100644 --- a/src/RevitParamsChecker/Views/Controls/EditableListControl.xaml +++ b/src/RevitParamsChecker/Views/Controls/EditableListControl.xaml @@ -56,7 +56,7 @@ -