mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Refactor Apps Script Variables UI for improved layout and usability
- Simplified the input layout for defining Apps Script Variables by removing the grid structure. - Added clear labels for "Key" and "Value" inputs to enhance user understanding. - Adjusted the "Add Variable" button for better alignment and padding, improving the overall user experience.
This commit is contained in:
@@ -586,24 +586,16 @@
|
|||||||
<CheckBox x:Name="chkDefineAppsScriptVariables" Content="Define Apps Script Variables" Margin="5" ToolTip="Enable to define key-value pairs for Apps Script Variables"/>
|
<CheckBox x:Name="chkDefineAppsScriptVariables" Content="Define Apps Script Variables" Margin="5" ToolTip="Enable to define key-value pairs for Apps Script Variables"/>
|
||||||
<StackPanel x:Name="appsScriptVariablesPanel" Visibility="Collapsed" Margin="25,0,5,20">
|
<StackPanel x:Name="appsScriptVariablesPanel" Visibility="Collapsed" Margin="25,0,5,20">
|
||||||
<TextBlock Text="Apps Script Variables" FontWeight="Bold" Margin="0,5,0,10"/>
|
<TextBlock Text="Apps Script Variables" FontWeight="Bold" Margin="0,5,0,10"/>
|
||||||
<!-- Input Grid -->
|
<!-- Key Input -->
|
||||||
<Grid Margin="0,0,0,10">
|
<TextBlock Text="Key:" Margin="0,0,0,5"/>
|
||||||
<Grid.ColumnDefinitions>
|
<TextBox x:Name="txtAppsScriptKey" Margin="0,0,0,10" ToolTip="Enter the variable key"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="*"/>
|
<!-- Value Input -->
|
||||||
<ColumnDefinition Width="Auto"/>
|
<TextBlock Text="Value:" Margin="0,0,0,5"/>
|
||||||
<ColumnDefinition Width="*"/>
|
<TextBox x:Name="txtAppsScriptValue" Margin="0,0,0,10" ToolTip="Enter the variable value"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
<!-- Add Variable Button -->
|
||||||
<Grid.RowDefinitions>
|
<Button x:Name="btnAddAppsScriptVariable" Content="Add Variable" Width="120" HorizontalAlignment="Left" Margin="0,10,0,10" Padding="10,5" ToolTip="Add the key-value pair to the list"/>
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<TextBlock Text="Key:" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,5,0"/>
|
|
||||||
<TextBox x:Name="txtAppsScriptKey" Grid.Row="0" Grid.Column="1" Margin="0,0,10,0" ToolTip="Enter the variable key"/>
|
|
||||||
<TextBlock Text="Value:" Grid.Row="0" Grid.Column="2" VerticalAlignment="Center" Margin="0,0,5,0"/>
|
|
||||||
<TextBox x:Name="txtAppsScriptValue" Grid.Row="0" Grid.Column="3" Margin="0,0,10,0" ToolTip="Enter the variable value"/>
|
|
||||||
<Button x:Name="btnAddAppsScriptVariable" Grid.Row="0" Grid.Column="4" Content="Add Variable" Width="100" ToolTip="Add the key-value pair to the list"/>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<!-- ListView for AppsScriptVariables -->
|
<!-- ListView for AppsScriptVariables -->
|
||||||
<ListView x:Name="lstAppsScriptVariables" Height="150" Margin="0,0,0,10">
|
<ListView x:Name="lstAppsScriptVariables" Height="150" Margin="0,0,0,10">
|
||||||
|
|||||||
Reference in New Issue
Block a user