Added different startup screen and ability to open and save project into files
This commit is contained in:
48
Examples/Nodify.Calculator/NewProjectDialog.xaml
Normal file
48
Examples/Nodify.Calculator/NewProjectDialog.xaml
Normal file
@@ -0,0 +1,48 @@
|
||||
<Window x:Class="Nodify.Calculator.NewProjectDialog"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
Title="New Project"
|
||||
Width="450"
|
||||
Height="250"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
ResizeMode="NoResize"
|
||||
Background="#2D2D30"
|
||||
Foreground="White">
|
||||
<Grid Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock Text="Project Name:" Grid.Row="0" Margin="0 0 0 4" />
|
||||
<TextBox x:Name="ProjectNameBox" Grid.Row="1" Margin="0 0 0 14"
|
||||
Background="#3E3E42" Foreground="White" Padding="6" FontSize="14" />
|
||||
|
||||
<TextBlock Text="Location:" Grid.Row="2" Margin="0 0 0 4" />
|
||||
<Grid Grid.Row="3" Margin="0 0 0 14">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox x:Name="LocationBox" Grid.Column="0"
|
||||
Background="#3E3E42" Foreground="White" Padding="6" FontSize="14"
|
||||
IsReadOnly="True" />
|
||||
<Button Content="Browse..." Grid.Column="1" Margin="8 0 0 0"
|
||||
Padding="12 4" Click="Browse_Click"
|
||||
Background="#3E3E42" Foreground="White" Cursor="Hand" />
|
||||
</Grid>
|
||||
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="5">
|
||||
<Button Content="Create" Width="90" Margin="0 0 10 0" Padding="6"
|
||||
Click="Create_Click" IsDefault="True"
|
||||
Background="#6366f1" Foreground="White" Cursor="Hand" />
|
||||
<Button Content="Cancel" Width="90" Padding="6"
|
||||
Click="Cancel_Click" IsCancel="True"
|
||||
Background="#3E3E42" Foreground="White" Cursor="Hand" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user