Skip to content

UI layout update for buttons #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions SqlcmdGuiApp/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
Title="SQLCMD GUI" Height="600" Width="600">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
Expand Down Expand Up @@ -55,7 +57,16 @@
<CheckBox x:Name="ReadOnlyIntentCheckBox" Content="ReadOnly Application Intent" Margin="0 2"/>
</StackPanel>

<GroupBox Header="Parameters" Grid.Row="2" Grid.ColumnSpan="2" Margin="0 5">
<StackPanel Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 5 0 0">
<Button Margin="5" Width="120" Click="TestConnectionButton_Click">
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE9D9;" Margin="0 0 5 0"/>
<TextBlock Text="Test Connection"/>
</StackPanel>
</Button>
</StackPanel>

<GroupBox Header="Parameters" Grid.Row="3" Grid.ColumnSpan="2" Margin="0 5">
<Grid>
<ScrollViewer VerticalScrollBarVisibility="Auto">
<ItemsControl x:Name="ParametersPanel">
Expand All @@ -73,7 +84,7 @@
</Grid>
</GroupBox>

<StackPanel Grid.Row="3" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 5 0 0">
<StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 5 0 0">
<Button Margin="5" Width="100" Click="LoadConfigButton_Click">
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE8B7;" Margin="0 0 5 0"/>
Expand All @@ -86,12 +97,9 @@
<TextBlock Text="Save Config"/>
</StackPanel>
</Button>
<Button Margin="5" Width="120" Click="TestConnectionButton_Click">
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE9D9;" Margin="0 0 5 0"/>
<TextBlock Text="Test Connection"/>
</StackPanel>
</Button>
</StackPanel>

<StackPanel Grid.Row="5" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 5 0 0">
<Button Margin="5" Width="120" Click="ViewCommandLineButton_Click">
<StackPanel Orientation="Horizontal">
<TextBlock FontFamily="Segoe MDL2 Assets" Text="&#xE756;" Margin="0 0 5 0"/>
Expand All @@ -105,6 +113,6 @@
</StackPanel>
</Button>
</StackPanel>
<TextBlock Grid.Row="4" Grid.ColumnSpan="2" Text="Copyright © Eitan Blumin, 2025" Foreground="#336699" HorizontalAlignment="Center" Margin="0 5 0 0"/>
<TextBlock Grid.Row="6" Grid.ColumnSpan="2" Text="Copyright © Eitan Blumin, 2025" Foreground="#336699" HorizontalAlignment="Center" Margin="0 5 0 0"/>
</Grid>
</Window>