|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | Title="Add SQL Server" |
5 | | - SizeToContent="Height" Width="500" MaxHeight="1050" |
| 5 | + Height="750" Width="500" |
6 | 6 | WindowStartupLocation="CenterOwner" |
7 | | - ResizeMode="NoResize" |
| 7 | + ResizeMode="CanResizeWithGrip" |
8 | 8 | Background="{DynamicResource BackgroundBrush}" |
9 | 9 | Foreground="{DynamicResource ForegroundBrush}"> |
10 | | - <ScrollViewer VerticalScrollBarVisibility="Auto"> |
11 | | - <Grid Margin="20"> |
| 10 | + <Grid Margin="20"> |
| 11 | + <Grid.RowDefinitions> |
| 12 | + <RowDefinition Height="*"/> |
| 13 | + <RowDefinition Height="Auto"/> |
| 14 | + </Grid.RowDefinitions> |
| 15 | + |
| 16 | + <ScrollViewer Grid.Row="0" VerticalScrollBarVisibility="Auto"> |
| 17 | + <Grid> |
12 | 18 | <Grid.RowDefinitions> |
13 | 19 | <RowDefinition Height="Auto"/> |
14 | 20 | <RowDefinition Height="Auto"/> |
15 | 21 | <RowDefinition Height="Auto"/> |
16 | 22 | <RowDefinition Height="Auto"/> |
17 | 23 | <RowDefinition Height="Auto"/> |
18 | 24 | <RowDefinition Height="Auto"/> |
19 | | - <RowDefinition Height="Auto"/> |
20 | 25 | </Grid.RowDefinitions> |
21 | 26 |
|
22 | 27 | <!-- Header --> |
|
217 | 222 | Foreground="{DynamicResource ForegroundMutedBrush}" |
218 | 223 | TextWrapping="Wrap" Margin="0,8,0,0" Visibility="Collapsed"/> |
219 | 224 |
|
220 | | - <!-- Buttons --> |
221 | | - <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,15,0,0"> |
222 | | - <Button x:Name="ViewReportButton" Content="View Report" Margin="0,0,8,0" |
223 | | - Click="ViewReport_Click" Visibility="Collapsed"/> |
224 | | - <Button x:Name="TestConnectionButton" Content="Test Connection" Margin="0,0,8,0" Click="TestConnection_Click"/> |
225 | | - <Button x:Name="SaveButton" Content="Save" MinWidth="80" Height="30" Padding="12,0" Margin="0,0,10,0" Click="Save_Click" IsDefault="True" Style="{StaticResource AccentButton}"/> |
226 | | - <Button Content="Cancel" Width="80" Height="30" Click="Cancel_Click" IsCancel="True"/> |
227 | | - </StackPanel> |
228 | 225 | </Grid> |
229 | | - </ScrollViewer> |
| 226 | + </ScrollViewer> |
| 227 | + |
| 228 | + <!-- Buttons pinned to bottom --> |
| 229 | + <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,15,0,0"> |
| 230 | + <Button x:Name="ViewReportButton" Content="View Report" Margin="0,0,8,0" |
| 231 | + Click="ViewReport_Click" Visibility="Collapsed"/> |
| 232 | + <Button x:Name="CheckForUpdatesButton" Content="Check for Updates" Margin="0,0,8,0" Click="CheckForUpdates_Click"/> |
| 233 | + <Button x:Name="TestConnectionButton" Content="Test Connection" Margin="0,0,8,0" Click="TestConnection_Click"/> |
| 234 | + <Button x:Name="SaveButton" Content="Save" MinWidth="80" Height="30" Padding="12,0" Margin="0,0,10,0" Click="Save_Click" IsDefault="True" Style="{StaticResource AccentButton}"/> |
| 235 | + <Button Content="Cancel" Width="80" Height="30" Click="Cancel_Click" IsCancel="True"/> |
| 236 | + </StackPanel> |
| 237 | + </Grid> |
230 | 238 | </Window> |
0 commit comments