|
13 | 13 | <!-- Server Name --> |
14 | 14 | <TextBlock Grid.Row="0" Text="Server name" Foreground="{DynamicResource ForegroundBrush}" |
15 | 15 | FontSize="12" Margin="0,0,0,4"/> |
16 | | - <AutoCompleteBox Grid.Row="1" x:Name="ServerNameBox" |
17 | | - Watermark="e.g. sql2022 or server.database.windows.net" |
18 | | - FontSize="13" Height="32" Margin="0,0,0,12" |
19 | | - FilterMode="ContainsOrdinal" |
20 | | - SelectionChanged="ServerName_SelectionChanged"/> |
| 16 | + <Grid Grid.Row="1" x:Name="ServerNameGrid" ColumnDefinitions="*,Auto" Margin="0,0,0,12" ColumnSpacing="0"> |
| 17 | + <TextBox x:Name="ServerNameBox" |
| 18 | + Watermark="e.g. sql2022 or server.database.windows.net" |
| 19 | + FontSize="13" Height="32"/> |
| 20 | + <Button Grid.Column="1" Click="DropdownButton_Click" |
| 21 | + Height="32" Width="32" Padding="0" |
| 22 | + Background="Black" CornerRadius="0,4,4,0" |
| 23 | + BorderBrush="White" BorderThickness="1"> |
| 24 | + <Path Data="M 0,0 L 4,4 L 8,0" |
| 25 | + Stroke="{DynamicResource ForegroundBrush}" |
| 26 | + StrokeThickness="1.5" |
| 27 | + VerticalAlignment="Center" |
| 28 | + HorizontalAlignment="Center"/> |
| 29 | + </Button> |
| 30 | + <Popup x:Name="ServerDropdown" |
| 31 | + PlacementTarget="{Binding #ServerNameGrid}" |
| 32 | + Placement="BottomEdgeAlignedLeft" |
| 33 | + IsLightDismissEnabled="True" |
| 34 | + MaxHeight="200"> |
| 35 | + <Border Background="{DynamicResource BackgroundBrush}" |
| 36 | + BorderBrush="#555" BorderThickness="1" CornerRadius="4"> |
| 37 | + <ListBox x:Name="ServerList" |
| 38 | + SelectionChanged="ServerList_SelectionChanged" |
| 39 | + FontSize="13"/> |
| 40 | + </Border> |
| 41 | + </Popup> |
| 42 | + </Grid> |
21 | 43 |
|
22 | 44 | <!-- Authentication --> |
23 | 45 | <TextBlock Grid.Row="2" Text="Authentication" Foreground="{DynamicResource ForegroundBrush}" |
|
0 commit comments