|
6 | 6 | xmlns:local="clr-namespace:Rubberduck.UI.UnitTesting" |
7 | 7 | xmlns:vm="clr-namespace:Rubberduck.UI.UnitTesting.ViewModels" |
8 | 8 | xmlns:controls="clr-namespace:Rubberduck.UI.Controls" |
9 | | - xmlns:themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" |
10 | 9 | xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" |
11 | 10 | xmlns:converters="clr-namespace:Rubberduck.UI.Converters" |
12 | 11 | Language="{UICulture}" |
13 | 12 | mc:Ignorable="d" |
14 | | - d:DesignHeight="400" d:DesignWidth="600" |
| 13 | + d:DesignHeight="400" d:DesignWidth="800" |
15 | 14 | d:DataContext="{d:DesignInstance local:TestExplorerViewModel}"> |
16 | 15 |
|
17 | 16 | <UserControl.Resources> |
|
49 | 48 |
|
50 | 49 | <BitmapImage x:Key="CopyResultsImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/document-copy.png" /> |
51 | 50 |
|
| 51 | + <BitmapImage x:Key="FilterImage" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/Funnel.png" /> |
| 52 | + <BitmapImage x:Key="OutcomeUnknown" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/question-white.png" /> |
| 53 | + <BitmapImage x:Key="OutcomeSpectacularFail" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/skull-mad.png" /> |
| 54 | + <BitmapImage x:Key="OutcomeFail" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png" /> |
| 55 | + <BitmapImage x:Key="OutcomeInconclusive" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/exclamation.png" /> |
| 56 | + <BitmapImage x:Key="OutcomeSucceeded" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/tick-circle.png" /> |
| 57 | + |
52 | 58 | <local:TestOutcomeImageSourceConverter x:Key="OutcomeIconConverter" /> |
53 | 59 | <converters:MillisecondToTimeMagnitudeConverter x:Key="FormattedTime" /> |
54 | 60 | <converters:InvertBoolValueConverter x:Key="InvertBoolValue" /> |
|
82 | 88 | <local:TestExplorerGroupingBooleanConverter x:Key="OutcomeConverter" /> |
83 | 89 | <local:TestExplorerGroupingBooleanConverter x:Key="LocationConverter" /> |
84 | 90 | <local:TestExplorerGroupingBooleanConverter x:Key="CategoryConverter" /> |
| 91 | + <local:TestExplorerOutcomeFilterToBooleanConverter x:Key="OutcomeFilterConverter" /> |
85 | 92 | <Style x:Key="ToolBarToggleStyle" TargetType="ToggleButton"> |
86 | 93 | <Setter Property="Margin" Value="2" /> |
87 | 94 | <Setter Property="BorderBrush" Value="{x:Static SystemColors.ActiveBorderBrush}" /> |
|
216 | 223 |
|
217 | 224 | <Separator /> |
218 | 225 |
|
| 226 | + <Image Source="{StaticResource FilterImage}" /> |
| 227 | + |
219 | 228 | <Label Content="{Resx Key=TestExplorer_Filter, ResxName=Rubberduck.Resources.UnitTesting.TestExplorer}" /> |
220 | 229 | <controls:SearchBox Width="100" |
221 | 230 | Text="{Binding TestNameFilter, Mode=OneWayToSource, UpdateSourceTrigger=PropertyChanged}" /> |
222 | 231 |
|
223 | 232 | <Label Content="{Resx Key=TestExplorer_Outcome, ResxName=Rubberduck.Resources.UnitTesting.TestExplorer}" /> |
224 | | - |
225 | | - <ComboBox Width="100" |
226 | | - ItemsSource="{Binding OutcomeFilters, UpdateSourceTrigger=PropertyChanged}" |
227 | | - SelectedItem="{Binding SelectedOutcomeFilter, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
| 233 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
| 234 | + ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=TestOutcome_Unknown}" |
| 235 | + IsChecked="{Binding Path=OutcomeFilter, Converter={StaticResource OutcomeFilterConverter}, ConverterParameter={x:Static local:TestExplorerOutcomeFilter.Unknown}}" > |
| 236 | + <Image Source="{StaticResource OutcomeUnknown}" /> |
| 237 | + </ToggleButton> |
| 238 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
| 239 | + ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=TestOutcome_SpectacularFail}" |
| 240 | + IsChecked="{Binding Path=OutcomeFilter, Converter={StaticResource OutcomeFilterConverter}, ConverterParameter={x:Static local:TestExplorerOutcomeFilter.SpectacularFail}}" > |
| 241 | + <Image Source="{StaticResource OutcomeSpectacularFail}" /> |
| 242 | + </ToggleButton> |
| 243 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
| 244 | + ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=TestOutcome_Fail}" |
| 245 | + IsChecked="{Binding Path=OutcomeFilter, Converter={StaticResource OutcomeFilterConverter}, ConverterParameter={x:Static local:TestExplorerOutcomeFilter.Fail}}" > |
| 246 | + <Image Source="{StaticResource OutcomeFail}" /> |
| 247 | + </ToggleButton> |
| 248 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
| 249 | + ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=TestOutcome_Inconclusive}" |
| 250 | + IsChecked="{Binding Path=OutcomeFilter, Converter={StaticResource OutcomeFilterConverter}, ConverterParameter={x:Static local:TestExplorerOutcomeFilter.Inconclusive}}" > |
| 251 | + <Image Source="{StaticResource OutcomeInconclusive}" /> |
| 252 | + </ToggleButton> |
| 253 | + <ToggleButton Style="{StaticResource ToolBarToggleStyle}" |
| 254 | + ToolTip="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=TestOutcome_Succeeded}" |
| 255 | + IsChecked="{Binding Path=OutcomeFilter, Converter={StaticResource OutcomeFilterConverter}, ConverterParameter={x:Static local:TestExplorerOutcomeFilter.Succeeded}}" > |
| 256 | + <Image Source="{StaticResource OutcomeSucceeded}" /> |
| 257 | + </ToggleButton> |
228 | 258 |
|
229 | 259 | <Separator /> |
230 | 260 |
|
|
0 commit comments