|
70 | 70 | <codeInspections:InspectionFilterToBooleanConverter x:Key="WarningFlagConverter" />
|
71 | 71 | <codeInspections:InspectionFilterToBooleanConverter x:Key="SuggestionFlagConverter" />
|
72 | 72 | <codeInspections:InspectionFilterToBooleanConverter x:Key="HintFlagConverter" />
|
| 73 | + <codeInspections:InspectionResultGroupingToBooleanConverter x:Key="GroupByTypeConverter" /> |
| 74 | + <codeInspections:InspectionResultGroupingToBooleanConverter x:Key="GroupByNameConverter" /> |
| 75 | + <codeInspections:InspectionResultGroupingToBooleanConverter x:Key="GroupByLocationConverter" /> |
| 76 | + <codeInspections:InspectionResultGroupingToBooleanConverter x:Key="GroupBySeverityConverter" /> |
73 | 77 | <Style x:Key="ToolBarToggleStyle" TargetType="ToggleButton">
|
74 | 78 | <Setter Property="Margin" Value="2" />
|
75 | 79 | <Setter Property="BorderBrush" Value="{x:Static SystemColors.ActiveBorderBrush}" />
|
|
105 | 109 |
|
106 | 110 | <ToggleButton Style="{StaticResource ToolBarToggleStyle}"
|
107 | 111 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingStyle_ByInspectionType}"
|
108 |
| - IsChecked="{Binding GroupByInspectionType, Mode=TwoWay}"> |
| 112 | + IsChecked="{Binding Path=Grouping, Converter={StaticResource GroupByTypeConverter}, ConverterParameter={x:Static codeInspections:InspectionResultGrouping.Type}}"> |
109 | 113 | <Image Source="{StaticResource GroupByInspectionTypeImage}" />
|
110 | 114 | </ToggleButton>
|
111 | 115 |
|
112 | 116 | <ToggleButton Style="{StaticResource ToolBarToggleStyle}"
|
113 | 117 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingStyle_ByName}"
|
114 |
| - IsChecked="{Binding GroupByName, Mode=TwoWay}"> |
| 118 | + IsChecked="{Binding Path=Grouping, Converter={StaticResource GroupByNameConverter}, ConverterParameter={x:Static codeInspections:InspectionResultGrouping.Name}}"> |
115 | 119 | <Image Source="{StaticResource GroupByInspectionImage}" />
|
116 | 120 | </ToggleButton>
|
117 | 121 |
|
118 | 122 | <ToggleButton Style="{StaticResource ToolBarToggleStyle}"
|
119 | 123 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingStyle_ByLocation}"
|
120 |
| - IsChecked="{Binding GroupByLocation, Mode=TwoWay}"> |
| 124 | + IsChecked="{Binding Path=Grouping, Converter={StaticResource GroupByLocationConverter}, ConverterParameter={x:Static codeInspections:InspectionResultGrouping.Location}}"> |
121 | 125 | <Image Source="{StaticResource GroupByLocationImage}" />
|
122 | 126 | </ToggleButton>
|
123 | 127 |
|
124 | 128 | <ToggleButton Style="{StaticResource ToolBarToggleStyle}"
|
125 | 129 | ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=GroupingStyle_BySeverity}"
|
126 |
| - IsChecked="{Binding GroupBySeverity, Mode=TwoWay}" > |
| 130 | + IsChecked="{Binding Path=Grouping, Converter={StaticResource GroupBySeverityConverter}, ConverterParameter={x:Static codeInspections:InspectionResultGrouping.Severity}}"> |
127 | 131 | <Image Source="{StaticResource GroupBySeverityImage}" />
|
128 | 132 | </ToggleButton>
|
129 | 133 |
|
|
191 | 195 | </DataGrid.Columns>
|
192 | 196 | </controls:GroupingGrid>
|
193 | 197 |
|
194 |
| - <controls:EmptyUIRefresh Grid.Row="1" Visibility="{Binding EmptyUIRefreshVisibility}"/> |
| 198 | + <controls:EmptyUIRefresh Grid.Row="1" Visibility="{Binding Unparsed, Converter={StaticResource BoolToVisibility}}" /> |
| 199 | + |
195 | 200 |
|
196 | 201 | <controls:BusyIndicator Grid.Row="1" Width="120" Height="120" Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibility}}" />
|
197 | 202 |
|
|
0 commit comments