-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateSchedule.xaml
More file actions
143 lines (127 loc) · 6.97 KB
/
CreateSchedule.xaml
File metadata and controls
143 lines (127 loc) · 6.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<Page x:Class="WpfApp.CreateSchedule"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WpfApp"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Title="Page2">
<Page.Resources>
<!-- TextBox Style -->
<Style TargetType="TextBox">
<Setter Property="Margin" Value="5"/>
<Setter Property="Padding" Value="3"/>
<Setter Property="Height" Value="30"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderBrush" Value="LightGray"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Background" Value="#FFF"/>
<Setter Property="Foreground" Value="#333"/>
<Setter Property="FontFamily" Value="Segoe UI"/>
<Setter Property="FontSize" Value="14"/>
</Style>
<!-- ComboBox Style -->
<Style TargetType="ComboBox">
<Setter Property="Margin" Value="5"/>
<Setter Property="Padding" Value="4"/>
<Setter Property="Height" Value="30"/>
<Setter Property="FontFamily" Value="Segoe UI"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Background" Value="#FFF"/>
<Setter Property="Foreground" Value="#333"/>
<Setter Property="BorderBrush" Value="Gray"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<!-- Button Style -->
<Style TargetType="Button">
<Setter Property="Margin" Value="5"/>
<Setter Property="Padding" Value="5"/>
<Setter Property="Width" Value="110"/>
<Setter Property="Height" Value="35"/>
<Setter Property="Background" Value="DodgerBlue"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontFamily" Value="Segoe UI"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- TextBlock Style -->
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="Black"/>
<Setter Property="Margin" Value="5,20,5,5"/>
<Setter Property="FontFamily" Value="Segoe UI"/>
<Setter Property="FontSize" Value="14"/>
</Style>
</Page.Resources>
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="instructionLabel" Grid.Row="3" Text="Enter Classroom Name" Background="AntiqueWhite" FontSize="18" Margin="5,20,5,5" />
<!-- Text Inputs with Placeholder Text -->
<TextBox x:Name="stringInput1" Grid.Row="4" Text="" FontSize="16" Foreground="Gray" Margin="5,9,5,10"/>
<!-- Label for Number of Seats -->
<TextBlock x:Name="SeatsLabel" Grid.Row="5" Text="Number of Seats per Class:" Background="AntiqueWhite" FontSize="18" Margin="5,20,5,5" />
<!-- Stepper Control for Number of Seats -->
<StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,0,0,160" Width="453">
<TextBox x:Name="seatsInput" Width="56" Text="0" FontSize="16" TextAlignment="Center"/>
<Button x:Name="plusB" Content="+" Click="IncreaseSeats_Click" FontSize="22" FontWeight="Bold"/>
<Button x:Name="minusB" Content="-" Click="DecreaseSeats_Click" FontSize="22" FontWeight="Bold"/>
<TextBlock x:Name="dayLabel" Text="Sunday" FontSize="16" Margin="10,0,0,0"
Foreground="AliceBlue" Background="Indigo" TextAlignment="Center" Height="24" Width="130" FontWeight="Bold" Visibility="Hidden"/>
</StackPanel>
<Button x:Name="SubmitButton" Content="Add Data" Grid.Row="6" Click="SubmitButton_Click" Margin="325,125,325,45" FontSize="16" FontWeight="Bold"/>
<StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Center" Width="240">
<Button x:Name="Previous" Content="Previous" Click="Previous_Click" FontSize="16"/>
<Button x:Name="Next" Content="Next" Click="Next_Click" FontSize="16"/>
</StackPanel>
<!-- ComboBox 1 -->
<ComboBox x:Name="comboBox1" Grid.Row="6" Margin="592,7,0,160" Width="134"
ItemsSource="{Binding OptionsForComboBox1}"
SelectedItem="{Binding SelectedOption, Mode=TwoWay}"
DisplayMemberPath="." MouseEnter="MenuOpenedInstructors" FontSize="16" Height="NaN" Visibility="Hidden"/>
<Button x:Name="SubmitListButton" Content="Submit Teacher" Grid.Row="6" Click="SubmitList"
Margin="604,54,46,111" FontSize="14" Height="NaN" Visibility="Hidden"/>
<Button x:Name="InfoButton" HorizontalAlignment="Left" VerticalAlignment="Top"
Background="Azure" Margin="271,125,0,0" Height="40" Width="40" Grid.Row="6" Click="InfoClicked" >
<Button.Content>
<Image Source="/Images/info_icon.png" Cursor="Hand"/>
</Button.Content>
<Button.ToolTip>
<ToolTip>
<TextBlock Text="Make sure all fields are filled correctly."/>
</ToolTip>
</Button.ToolTip>
<Button.Template>
<ControlTemplate TargetType="Button">
<Border Width="40" Height="40"
CornerRadius="20"
Background="{TemplateBinding Background}" >
<ContentPresenter VerticalAlignment="Center"
HorizontalAlignment="Center"/>
</Border>
</ControlTemplate>
</Button.Template>
</Button>
</Grid>
</Page>