|
11 | 11 | <Window.CommandBindings> |
12 | 12 | <CommandBinding Command="Find" Executed="Find_Executed"/> |
13 | 13 | </Window.CommandBindings> |
14 | | - <Grid Margin="10"> |
15 | | - <Grid.RowDefinitions> |
16 | | - <RowDefinition Height="Auto"/> |
17 | | - <RowDefinition Height="*"/> |
18 | | - <RowDefinition Height="Auto"/> |
19 | | - <RowDefinition Height="Auto"/> |
20 | | - </Grid.RowDefinitions> |
| 14 | + <Grid> |
| 15 | + <!-- Main content --> |
| 16 | + <Grid x:Name="mainContent" Margin="10"> |
| 17 | + <Grid.RowDefinitions> |
| 18 | + <RowDefinition Height="Auto"/> |
| 19 | + <RowDefinition Height="*"/> |
| 20 | + <RowDefinition Height="Auto"/> |
| 21 | + <RowDefinition Height="Auto"/> |
| 22 | + </Grid.RowDefinitions> |
21 | 23 |
|
22 | | - <Border x:Name="findBarBorder" Grid.Row="0" Visibility="Collapsed" |
23 | | - Background="{DynamicResource SystemControlBackgroundAltHighBrush}" |
24 | | - BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}" |
25 | | - BorderThickness="1" CornerRadius="4" Padding="6,4" Margin="0,0,0,8"> |
26 | | - <DockPanel> |
27 | | - <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" Margin="6,0,0,0"> |
28 | | - <TextBlock x:Name="matchInfo" VerticalAlignment="Center" FontSize="11" Opacity="0.6" Margin="0,0,8,0"/> |
29 | | - <Button Click="FindPrev_Click" Padding="4,2" ToolTip="Previous match (Shift+F3)" |
30 | | - Background="Transparent" BorderThickness="0"> |
31 | | - <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12"/> |
32 | | - </Button> |
33 | | - <Button Click="FindNext_Click" Padding="4,2" ToolTip="Next match (F3)" |
34 | | - Background="Transparent" BorderThickness="0"> |
35 | | - <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12"/> |
36 | | - </Button> |
37 | | - <Button Click="FindClose_Click" Padding="4,2" Margin="4,0,0,0" ToolTip="Close (Esc)" |
38 | | - Background="Transparent" BorderThickness="0"> |
39 | | - <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12"/> |
40 | | - </Button> |
41 | | - </StackPanel> |
42 | | - <TextBox x:Name="searchText" VerticalAlignment="Center" FontSize="13" |
43 | | - KeyDown="SearchBox_KeyDown"/> |
44 | | - </DockPanel> |
45 | | - </Border> |
| 24 | + <Border x:Name="findBarBorder" Grid.Row="0" Visibility="Collapsed" |
| 25 | + Background="{DynamicResource SystemControlBackgroundAltHighBrush}" |
| 26 | + BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}" |
| 27 | + BorderThickness="1" CornerRadius="4" Padding="6,4" Margin="0,0,0,8"> |
| 28 | + <DockPanel> |
| 29 | + <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" Margin="6,0,0,0"> |
| 30 | + <TextBlock x:Name="matchInfo" VerticalAlignment="Center" FontSize="11" Opacity="0.6" Margin="0,0,8,0"/> |
| 31 | + <Button Click="FindPrev_Click" Padding="4,2" ToolTip="Previous match (Shift+F3)" |
| 32 | + Background="Transparent" BorderThickness="0"> |
| 33 | + <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12"/> |
| 34 | + </Button> |
| 35 | + <Button Click="FindNext_Click" Padding="4,2" ToolTip="Next match (F3)" |
| 36 | + Background="Transparent" BorderThickness="0"> |
| 37 | + <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12"/> |
| 38 | + </Button> |
| 39 | + <Button Click="FindClose_Click" Padding="4,2" Margin="4,0,0,0" ToolTip="Close (Esc)" |
| 40 | + Background="Transparent" BorderThickness="0"> |
| 41 | + <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="12"/> |
| 42 | + </Button> |
| 43 | + </StackPanel> |
| 44 | + <TextBox x:Name="searchText" VerticalAlignment="Center" FontSize="13" |
| 45 | + KeyDown="SearchBox_KeyDown"/> |
| 46 | + </DockPanel> |
| 47 | + </Border> |
46 | 48 |
|
47 | | - <TreeView Grid.Row="1" x:Name="treeviewSyms" Margin="0,0,0,8"/> |
| 49 | + <TreeView Grid.Row="1" x:Name="treeviewSyms" Margin="0,0,0,8"/> |
48 | 50 |
|
49 | | - <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,0,0,8"> |
50 | | - <Button Content="Check PDB availability" Width="150" Margin="0,0,8,0" Click="CheckPDBAvail_Click"/> |
51 | | - <Button x:Name="dnldButton" Content="Download PDBs" Width="120" Margin="0,0,8,0" Click="DownloadPDBs_Click"/> |
52 | | - </StackPanel> |
| 51 | + <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,0,0,8"> |
| 52 | + <Button Content="Check PDB availability" Width="150" Margin="0,0,8,0" Click="CheckPDBAvail_Click"/> |
| 53 | + <Button x:Name="dnldButton" Content="Download PDBs" Width="120" Margin="0,0,8,0" Click="DownloadPDBs_Click"/> |
| 54 | + </StackPanel> |
53 | 55 |
|
54 | | - <Grid Grid.Row="3"> |
55 | | - <Grid.ColumnDefinitions> |
56 | | - <ColumnDefinition Width="*"/> |
57 | | - <ColumnDefinition Width="Auto"/> |
58 | | - </Grid.ColumnDefinitions> |
59 | | - <TextBlock x:Name="downloadStatus" Grid.Column="0" TextTrimming="CharacterEllipsis" VerticalAlignment="Center"/> |
60 | | - <ProgressBar x:Name="downloadProgress" Grid.Column="1" Width="150" Height="18" Margin="8,0,0,0"/> |
| 56 | + <TextBlock x:Name="downloadStatus" Grid.Row="3" TextTrimming="CharacterEllipsis" VerticalAlignment="Center"/> |
61 | 57 | </Grid> |
| 58 | + |
| 59 | + <!-- Modal processing overlay --> |
| 60 | + <Border x:Name="processingOverlay" Visibility="Collapsed" |
| 61 | + Background="#80000000" Panel.ZIndex="50"> |
| 62 | + <Border Background="{DynamicResource SystemControlBackgroundAltHighBrush}" |
| 63 | + CornerRadius="12" Padding="40,32" |
| 64 | + HorizontalAlignment="Center" VerticalAlignment="Center" |
| 65 | + MinWidth="280" |
| 66 | + BorderThickness="1" BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"> |
| 67 | + <Border.Effect> |
| 68 | + <DropShadowEffect BlurRadius="24" ShadowDepth="4" Opacity="0.3"/> |
| 69 | + </Border.Effect> |
| 70 | + <StackPanel HorizontalAlignment="Center"> |
| 71 | + <ui:ProgressRing IsActive="True" Width="40" Height="40" Margin="0,0,0,14"/> |
| 72 | + <TextBlock x:Name="overlayStatus" FontSize="13" TextAlignment="Center" |
| 73 | + TextWrapping="Wrap" MaxWidth="240" Margin="0,0,0,14"/> |
| 74 | + <Button Click="CancelDownload_Click" HorizontalAlignment="Center" Padding="20,6"> |
| 75 | + <StackPanel Orientation="Horizontal"> |
| 76 | + <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontSize="13" VerticalAlignment="Center" Margin="0,0,6,0"/> |
| 77 | + <TextBlock Text="Cancel"/> |
| 78 | + </StackPanel> |
| 79 | + </Button> |
| 80 | + </StackPanel> |
| 81 | + </Border> |
| 82 | + </Border> |
62 | 83 | </Grid> |
63 | 84 | </Window> |
0 commit comments