53 lines
2.3 KiB
XML
53 lines
2.3 KiB
XML
<Window x:Class="Nodify.Calculator.AddVariableDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Add New Variable"
|
|
Width="350"
|
|
Height="280"
|
|
WindowStartupLocation="CenterOwner"
|
|
ResizeMode="NoResize"
|
|
Background="#2D2D30"
|
|
Foreground="White">
|
|
<Grid Margin="15">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="Variable Name:" Grid.Row="0" Margin="0 0 0 4" />
|
|
<TextBox x:Name="VariableNameBox" Grid.Row="1" Margin="0 0 0 10"
|
|
Background="#3E3E42" Foreground="White" Padding="4" />
|
|
|
|
<TextBlock Text="Variable Type:" Grid.Row="2" Margin="0 0 0 4" />
|
|
<ComboBox x:Name="VariableTypeBox" Grid.Row="3" Margin="0 0 0 10"
|
|
Background="#3E3E42" Foreground="White" SelectedIndex="0">
|
|
<ComboBoxItem Content="string" />
|
|
<ComboBoxItem Content="int" />
|
|
<ComboBoxItem Content="double" />
|
|
<ComboBoxItem Content="bool" />
|
|
<ComboBoxItem Content="float" />
|
|
<ComboBoxItem Content="decimal" />
|
|
<ComboBoxItem Content="long" />
|
|
<ComboBoxItem Content="DateTime" />
|
|
<ComboBoxItem Content="object" />
|
|
</ComboBox>
|
|
|
|
<TextBlock Text="Default Value (optional):" Grid.Row="4" Margin="0 0 0 4" />
|
|
<TextBox x:Name="DefaultValueBox" Grid.Row="5" Margin="0 0 0 10"
|
|
Background="#3E3E42" Foreground="White" Padding="4" />
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="7">
|
|
<Button Content="Add" Width="80" Margin="0 0 10 0" Padding="4"
|
|
Click="OnAddClick" IsDefault="True" />
|
|
<Button Content="Cancel" Width="80" Padding="4"
|
|
Click="OnCancelClick" IsCancel="True" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|