|
40 | 40 | </LinearGradientBrush>
|
41 | 41 | <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" />
|
42 | 42 | <SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}" Color="Black" />
|
43 |
| - |
44 |
| - <Style x:Key="XButtonStyle" TargetType="Button"> |
45 |
| - <Setter Property="Background" Value="Transparent"/> |
46 |
| - <Setter Property="Content" Value="✕"/> |
47 |
| - <Setter Property="BorderThickness" Value="0"/> |
48 |
| - <Setter Property="HorizontalContentAlignment" Value="Center"/> |
49 |
| - <Setter Property="VerticalContentAlignment" Value="Center"/> |
50 |
| - <Setter Property="Template"> |
51 |
| - <Setter.Value> |
52 |
| - <ControlTemplate TargetType="Button"> |
53 |
| - <Grid> |
54 |
| - <VisualStateManager.VisualStateGroups> |
55 |
| - <VisualStateGroup x:Name="CommonStates"> |
56 |
| - <VisualState x:Name="Normal"/> |
57 |
| - <VisualState x:Name="MouseOver"> |
58 |
| - <Storyboard> |
59 |
| - <ColorAnimation Duration="0" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" To="PaleGoldenrod"/> |
60 |
| - <DoubleAnimation Duration="0" Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Opacity" To="1"/> |
61 |
| - </Storyboard> |
62 |
| - </VisualState> |
63 |
| - <VisualState x:Name="Pressed"> |
64 |
| - <Storyboard> |
65 |
| - <ColorAnimation Duration="0" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" To="PaleGoldenrod"/> |
66 |
| - <DoubleAnimation Duration="0" Storyboard.TargetName="BackgroundAnimation" Storyboard.TargetProperty="Opacity" To="1"/> |
67 |
| - </Storyboard> |
68 |
| - </VisualState> |
69 |
| - </VisualStateGroup> |
70 |
| - <VisualStateGroup x:Name="FocusStates"> |
71 |
| - <VisualState x:Name="Focused"> |
72 |
| - <Storyboard> |
73 |
| - <DoubleAnimation Duration="0" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity" To="1"/> |
74 |
| - </Storyboard> |
75 |
| - </VisualState> |
76 |
| - <VisualState x:Name="Unfocused" /> |
77 |
| - </VisualStateGroup> |
78 |
| - </VisualStateManager.VisualStateGroups> |
79 |
| - <Border x:Name="Background" CornerRadius="3" Background="White" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"> |
80 |
| - <Grid Background="{TemplateBinding Background}" Margin="1"> |
81 |
| - <Border Opacity="0" x:Name="BackgroundAnimation" Background="PaleGoldenrod" /> |
82 |
| - </Grid> |
83 |
| - </Border> |
84 |
| - <ContentPresenter |
85 |
| - x:Name="contentPresenter" |
86 |
| - Content="{TemplateBinding Content}" |
87 |
| - ContentTemplate="{TemplateBinding ContentTemplate}" |
88 |
| - VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
89 |
| - HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
90 |
| - Margin="{TemplateBinding Padding}"/> |
91 |
| - <Rectangle x:Name="DisabledVisualElement" RadiusX="3" RadiusY="3" Fill="#FFFFFFFF" Opacity="0" IsHitTestVisible="false" /> |
92 |
| - <Rectangle x:Name="FocusVisualElement" RadiusX="2" RadiusY="2" Margin="1" Stroke="PaleGoldenrod" StrokeThickness="1" Opacity="0" IsHitTestVisible="false" /> |
93 |
| - </Grid> |
94 |
| - </ControlTemplate> |
95 |
| - </Setter.Value> |
96 |
| - </Setter> |
97 |
| - </Style> |
98 | 43 | </ResourceDictionary>
|
99 | 44 | </UserControl.Resources>
|
100 | 45 |
|
101 | 46 | <Grid UseLayoutRounding="True">
|
102 | 47 | <Grid.RowDefinitions>
|
103 |
| - <!--<RowDefinition Height="30"/>--> |
104 |
| - <RowDefinition Height="20"/> |
105 | 48 | <RowDefinition Height="*" MinHeight="64" />
|
106 | 49 | </Grid.RowDefinitions>
|
107 | 50 |
|
108 |
| - <!--<ToolBarTray Grid.Row="0" IsLocked="True"> |
109 |
| - <ToolBar Style="{DynamicResource ToolBarWithOverflowOnlyShowingWhenNeededStyle}"> |
110 |
| -
|
111 |
| - <Button> |
112 |
| - <Image Height="16" Source="../../Resources/arrow-circle-double.png"> |
113 |
| - <Image.Style> |
114 |
| - <Style TargetType="Image"> |
115 |
| - <Style.Triggers> |
116 |
| - <Trigger Property="IsEnabled" Value="False"> |
117 |
| - <Setter Property="Opacity" Value="0.3" /> |
118 |
| - </Trigger> |
119 |
| - </Style.Triggers> |
120 |
| - </Style> |
121 |
| - </Image.Style> |
122 |
| - </Image> |
123 |
| - <Button.ToolTip> |
124 |
| - <TextBlock Text="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=Refresh}" /> |
125 |
| - </Button.ToolTip> |
126 |
| - </Button> |
127 |
| - </ToolBar> |
128 |
| - </ToolBarTray>--> |
129 |
| - |
130 |
| - <Border Grid.Row="1" |
131 |
| - BorderBrush="{StaticResource {x:Static SystemColors.ControlBrushKey}}" |
132 |
| - BorderThickness="1"> |
133 |
| - <Grid> |
134 |
| - <TextBox x:Name="SearchBox" |
135 |
| - VerticalContentAlignment="Center" |
136 |
| - IsEnabled="{Binding CanSearch}" |
137 |
| - MinHeight="20" |
138 |
| - PreviewKeyDown="SearchBox_OnPreviewKeyDown" |
139 |
| - TextChanged="SearchBox_OnTextChanged" /> |
140 |
| - |
141 |
| - <Image Source="{StaticResource SearchImage}" |
142 |
| - HorizontalAlignment="Right" VerticalAlignment="Center" |
143 |
| - MaxHeight="16" Margin="0,0,1,0" |
144 |
| - IsEnabled="{Binding CanSearch}" |
145 |
| - Visibility="{Binding ElementName=SearchBox, Path=Text.Length, Converter={StaticResource StringHasValueToVisibility}}" |
146 |
| - MouseDown="SearchIcon_OnMouseDown" /> |
147 |
| - |
148 |
| - <Button Style="{StaticResource XButtonStyle}" |
149 |
| - HorizontalAlignment="Right" VerticalAlignment="Center" |
150 |
| - Height="18" Width="18" Margin="0,1,1,0" |
151 |
| - IsEnabled="{Binding CanSearch}" |
152 |
| - Visibility="{Binding ElementName=SearchBox, Path=Text.Length, Converter={StaticResource StringHasNoValueToVisibility}}" |
153 |
| - Click="ButtonBase_OnClick" /> |
154 |
| - </Grid> |
155 |
| - </Border> |
156 |
| - <controls:EmptyUIRefresh Grid.Row="2" /> |
| 51 | + <controls:EmptyUIRefresh Grid.Row="1" /> |
157 | 52 |
|
158 |
| - <DataGrid Grid.Row="2" ItemsSource="{Binding ModuleMetrics}" AutoGenerateColumns="False" IsReadOnly="True"> |
| 53 | + <DataGrid Grid.Row="1" ItemsSource="{Binding ModuleMetrics}" AutoGenerateColumns="False" IsReadOnly="True"> |
159 | 54 | <DataGrid.Columns>
|
160 | 55 | <DataGridTextColumn Binding="{Binding Path=ModuleName}" Header="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=SearchResults_ModuleName}" Width="*"/>
|
161 | 56 | <DataGridTextColumn Binding="{Binding Path=Result.Lines}" Header="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=CodeMetrics_Lines}" Width="Auto" x:Name="LinesColumn"/>
|
|
0 commit comments