-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddTask.xaml
More file actions
executable file
·129 lines (119 loc) · 6.06 KB
/
Copy pathAddTask.xaml
File metadata and controls
executable file
·129 lines (119 loc) · 6.06 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
<phone:PhoneApplicationPage
x:Class="Todo.AddTask"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
shell:SystemTray.IsVisible="True">
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--TitlePanel contains the name of the application and page title-->
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
<TextBlock x:Name="PageTitle" Text="New task" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle2Style}"/>
</StackPanel>
<!--Tasks-->
<StackPanel x:Name="InputPanel" Grid.Row="1" Margin="20,20,20,0">
<TextBlock Text="Task Title:"
Margin="12,-7,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource PhoneTextTitle2Style}"/>
<TextBox
x:Name="Task_Name"
Text=""
Margin="12,-7,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="200"/>
<TextBlock Text="Task Description:"
Margin="12,-7,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource PhoneTextTitle2Style}"/>
<TextBox
x:Name="Task_Description"
Text=""
Margin="12,-7,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="200"/>
<TextBlock Text="Task Type:"
Margin="12,-7,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource PhoneTextTitle2Style}"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<RadioButton x:Name="StudyButton"
Content="Study"
IsChecked="True"
GroupName="Task_Type"/>
<RadioButton x:Name="ReadButton"
Content="Read"
GroupName="Task_Type"/>
<RadioButton x:Name="SocialButton"
Content="Social"
GroupName="Task_Type"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<RadioButton x:Name="SportsButton"
Content="Sports"
GroupName="Task_Type"/>
<RadioButton x:Name="CookButton"
Content="Cook"
GroupName="Task_Type"/>
<RadioButton x:Name="CleanButton"
Content="Clean"
GroupName="Task_Type"/>
</StackPanel>
<TextBlock Text="Task Difficulty:"
Margin="12,-7,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource PhoneTextTitle2Style}"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<RadioButton x:Name="EasyButton"
Content="Easy"
IsChecked="True"
GroupName="Task_Difficulty"/>
<RadioButton x:Name="NormalButton"
Content="Normal"
GroupName="Task_Difficulty"/>
<RadioButton x:Name="HardButton"
Content="Hard"
GroupName="Task_Difficulty"/>
</StackPanel>
<TextBlock Text="Repeatable:"
Margin="12,-7,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource PhoneTextTitle2Style}"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<RadioButton x:Name="YesButton"
Content="Yes"
IsChecked="True"
GroupName="Task_Repeatability"/>
<RadioButton x:Name="NoButton"
Content="No"
GroupName="Task_Repeatability"/>
</StackPanel>
</StackPanel>
</Grid>
<!--ApplicationBar-->
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
<shell:ApplicationBarIconButton x:Name="Add_Task" IconUri="/Icons/appbar.add.rest.png" Text="Add Task" Click="Submit_Click"/>
<shell:ApplicationBarIconButton x:Name="Cancel_Task" IconUri="/Icons/appbar.cancel.rest.png" Text="Cancel" Click="Cancel_Task_Click"/>
</shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>