|
67 | 67 | <ComboBoxItem Content="Executions" Tag="executions"/> |
68 | 68 | </ComboBox> |
69 | 69 | </StackPanel> |
| 70 | + <StackPanel Spacing="4"> |
| 71 | + <TextBlock Text="Group by" Foreground="{DynamicResource ForegroundBrush}" FontSize="11"/> |
| 72 | + <ComboBox x:Name="GroupByBox" Width="130" Height="36" FontSize="13" |
| 73 | + SelectedIndex="0" SelectionChanged="GroupBy_SelectionChanged"> |
| 74 | + <ComboBoxItem Content="None" Tag="none"/> |
| 75 | + <ComboBoxItem Content="Query Hash" Tag="query-hash"/> |
| 76 | + <ComboBoxItem Content="Module" Tag="module"/> |
| 77 | + </ComboBox> |
| 78 | + </StackPanel> |
70 | 79 | <StackPanel Spacing="4"> |
71 | 80 | <TextBlock Text="Search by" Foreground="{DynamicResource ForegroundBrush}" FontSize="11"/> |
72 | 81 | <ComboBox x:Name="SearchTypeBox" Width="120" Height="36" FontSize="13" |
|
141 | 150 | </ContextMenu> |
142 | 151 | </DataGrid.ContextMenu> |
143 | 152 | <DataGrid.Columns> |
| 153 | + <DataGridTemplateColumn Header="" Width="220" IsVisible="False"> |
| 154 | + <DataGridTemplateColumn.CellTemplate> |
| 155 | + <DataTemplate x:DataType="local:QueryStoreRow"> |
| 156 | + <StackPanel Orientation="Horizontal" Margin="{Binding IndentMargin}" |
| 157 | + VerticalAlignment="Stretch"> |
| 158 | + <Button Content="{Binding ExpandChevron}" |
| 159 | + IsVisible="{Binding HasChildren}" |
| 160 | + MinWidth="20" Padding="2,0" |
| 161 | + FontSize="18" FontWeight="Bold" |
| 162 | + Background="Transparent" BorderThickness="0" |
| 163 | + Foreground="{DynamicResource ForegroundBrush}" |
| 164 | + VerticalAlignment="Stretch" |
| 165 | + VerticalContentAlignment="Center" |
| 166 | + Click="ExpandRow_Click"/> |
| 167 | + <TextBlock Text="{Binding GroupDisplayText}" |
| 168 | + VerticalAlignment="Center" |
| 169 | + Margin="4,0,0,0" |
| 170 | + FontWeight="{Binding GroupFontWeight}" |
| 171 | + Foreground="{DynamicResource ForegroundBrush}" |
| 172 | + TextTrimming="CharacterEllipsis"/> |
| 173 | + </StackPanel> |
| 174 | + </DataTemplate> |
| 175 | + </DataGridTemplateColumn.CellTemplate> |
| 176 | + </DataGridTemplateColumn> |
144 | 177 | <DataGridTemplateColumn Header="" Width="40"> |
145 | 178 | <DataGridTemplateColumn.CellTemplate> |
146 | 179 | <DataTemplate x:DataType="local:QueryStoreRow"> |
|
330 | 363 | Foreground="{DynamicResource ForegroundBrush}"/> |
331 | 364 | </StackPanel> |
332 | 365 | </Border> |
| 366 | + <!-- Empty-state overlay (Module groupby with no module data) --> |
| 367 | + <Border x:Name="GridEmptyMessage" IsVisible="False" |
| 368 | + HorizontalAlignment="Stretch" VerticalAlignment="Stretch" |
| 369 | + IsHitTestVisible="False"> |
| 370 | + <TextBlock x:Name="GridEmptyMessageText" |
| 371 | + HorizontalAlignment="Center" VerticalAlignment="Center" |
| 372 | + FontSize="20" FontWeight="SemiBold" |
| 373 | + Foreground="{DynamicResource ForegroundMutedBrush}" |
| 374 | + TextAlignment="Center"/> |
| 375 | + </Border> |
333 | 376 | </Grid> |
334 | 377 | </Grid> |
335 | 378 | </UserControl> |
0 commit comments