Skip to content

Commit cd7153a

Browse files
committed
First viable feature : improvments needed but working
1 parent e763623 commit cd7153a

4 files changed

Lines changed: 1172 additions & 99 deletions

File tree

src/PlanViewer.App/Controls/QueryStoreGridControl.axaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@
6767
<ComboBoxItem Content="Executions" Tag="executions"/>
6868
</ComboBox>
6969
</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>
7079
<StackPanel Spacing="4">
7180
<TextBlock Text="Search by" Foreground="{DynamicResource ForegroundBrush}" FontSize="11"/>
7281
<ComboBox x:Name="SearchTypeBox" Width="120" Height="36" FontSize="13"
@@ -141,6 +150,28 @@
141150
</ContextMenu>
142151
</DataGrid.ContextMenu>
143152
<DataGrid.Columns>
153+
<DataGridTemplateColumn Header="" Width="200" IsVisible="False">
154+
<DataGridTemplateColumn.CellTemplate>
155+
<DataTemplate x:DataType="local:QueryStoreRow">
156+
<StackPanel Orientation="Horizontal" Margin="{Binding IndentMargin}">
157+
<Button Content="{Binding ExpandChevron}"
158+
IsVisible="{Binding HasChildren}"
159+
Width="24" Height="22" Padding="0"
160+
FontSize="14" FontWeight="Bold"
161+
Background="Transparent" BorderThickness="0"
162+
Foreground="{DynamicResource ForegroundBrush}"
163+
VerticalAlignment="Center"
164+
Click="ExpandRow_Click"/>
165+
<TextBlock Text="{Binding GroupDisplayText}"
166+
VerticalAlignment="Center"
167+
Margin="4,0,0,0"
168+
FontWeight="{Binding GroupFontWeight}"
169+
Foreground="{DynamicResource ForegroundBrush}"
170+
TextTrimming="CharacterEllipsis"/>
171+
</StackPanel>
172+
</DataTemplate>
173+
</DataGridTemplateColumn.CellTemplate>
174+
</DataGridTemplateColumn>
144175
<DataGridTemplateColumn Header="" Width="40">
145176
<DataGridTemplateColumn.CellTemplate>
146177
<DataTemplate x:DataType="local:QueryStoreRow">

0 commit comments

Comments
 (0)