|
1 | 1 | <UserControl xmlns="https://github.com/avaloniaui" |
2 | | -xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 | | -xmlns:local="using:PlanViewer.App.Controls" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:local="using:PlanViewer.App.Controls" |
4 | 4 | x:Class="PlanViewer.App.Controls.WaitStatsProfileControl"> |
5 | 5 | <Grid RowDefinitions="Auto,*"> |
6 | | - <!-- Header: toggle chart type --> |
7 | | - <StackPanel Grid.Row="0" Orientation="Horizontal" Spacing="6" Margin="4,2"> |
8 | | - <Button x:Name="ToggleChartButton" Content="▤" |
| 6 | + <!-- Header row: left controls + right-aligned legend button --> |
| 7 | + <Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,*,Auto" Margin="4,2"> |
| 8 | + <Button x:Name="ToggleChartButton" Grid.Column="0" Content="▤" |
9 | 9 | Width="22" Height="22" Padding="0" |
10 | 10 | FontSize="12" Background="Transparent" BorderThickness="0" |
11 | 11 | Foreground="{DynamicResource ForegroundBrush}" |
12 | 12 | ToolTip.Tip="Toggle bar / ribbon chart" |
13 | 13 | Click="ToggleChart_Click"/> |
14 | | - <TextBlock x:Name="TitleText" Text="Wait Stats" |
| 14 | + <TextBlock x:Name="TitleText" Grid.Column="1" Text="Wait Stats" |
15 | 15 | FontSize="11" FontWeight="SemiBold" |
16 | 16 | Foreground="{DynamicResource SlicerToggleBrush}" |
17 | | - VerticalAlignment="Center"/> |
18 | | - <Button x:Name="LegendButton" Content="◆" |
19 | | - Width="22" Height="22" Padding="0" |
20 | | - FontSize="12" Background="Transparent" BorderThickness="0" |
| 17 | + VerticalAlignment="Center" Margin="6,0,0,0"/> |
| 18 | + <!-- spacer --> |
| 19 | + <Button x:Name="LegendButton" Grid.Column="3" Content="Legend" |
| 20 | + Height="20" Padding="8,0" |
| 21 | + FontSize="10" |
| 22 | + Background="Transparent" BorderThickness="1" |
| 23 | + BorderBrush="{DynamicResource ForegroundMutedBrush}" |
21 | 24 | Foreground="{DynamicResource ForegroundBrush}" |
22 | 25 | ToolTip.Tip="Show color legend" |
| 26 | + VerticalAlignment="Center" |
23 | 27 | Click="Legend_Click"/> |
24 | | - </StackPanel> |
| 28 | + </Grid> |
25 | 29 | <!-- Content area --> |
26 | 30 | <Grid Grid.Row="1" x:Name="ContentArea" MinHeight="24"> |
27 | 31 | <local:WaitProfileBarControl x:Name="GlobalBar" PercentMode="True" IsVisible="False"/> |
|
0 commit comments