Adding final project to dev branch
This commit is contained in:
134
WguApp/Views/TermPage.xaml
Normal file
134
WguApp/Views/TermPage.xaml
Normal file
@@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="WguApp.Views.TermPage"
|
||||
Title="Term">
|
||||
<ContentPage.ToolbarItems>
|
||||
<ToolbarItem Text="Save"
|
||||
Order="Primary"
|
||||
Priority="0"
|
||||
IconImageSource="{FontImageSource Glyph='', FontFamily='Phosphor', Size=20, Color=AliceBlue}"
|
||||
Clicked="SaveButton_OnClicked"/>
|
||||
<ToolbarItem Text="Delete"
|
||||
Order="Primary"
|
||||
Priority="0"
|
||||
IconImageSource="{FontImageSource Glyph='', FontFamily='Phosphor', Size=20, Color=Red}"
|
||||
Clicked="DeleteButton_OnClicked"/>
|
||||
</ContentPage.ToolbarItems>
|
||||
|
||||
<ContentPage.Content>
|
||||
<Grid RowDefinitions="*">
|
||||
<ScrollView HorizontalOptions="Fill"
|
||||
HorizontalScrollBarVisibility="Never">
|
||||
<VerticalStackLayout HorizontalOptions="Fill">
|
||||
<Label Text="Term Info"
|
||||
FontAttributes="Bold"
|
||||
FontSize="20"
|
||||
Margin="20, 10, 20, 5"/>
|
||||
|
||||
<Grid ColumnDefinitions="Auto, *"
|
||||
ColumnSpacing="10"
|
||||
Padding="5"
|
||||
HorizontalOptions="Fill"
|
||||
Margin="20, 10">
|
||||
|
||||
<Label Grid.Column="0"
|
||||
Text="Title:"
|
||||
VerticalOptions="Center"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Entry x:Name="TitleEntry"
|
||||
Grid.Column="1"
|
||||
Placeholder="Enter value here..."
|
||||
VerticalOptions="Center"
|
||||
WidthRequest="200"
|
||||
HorizontalOptions="End" />
|
||||
|
||||
</Grid>
|
||||
|
||||
<Grid ColumnDefinitions="Auto, *"
|
||||
ColumnSpacing="10"
|
||||
Padding="5"
|
||||
HorizontalOptions="Fill"
|
||||
Margin="20, 10">
|
||||
|
||||
<Label Grid.Column="0"
|
||||
Text="Start date:"
|
||||
VerticalOptions="Center"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<DatePicker x:Name="StartDatePicker"
|
||||
Grid.Column="1"
|
||||
VerticalOptions="Center"
|
||||
WidthRequest="200"
|
||||
HorizontalOptions="End" />
|
||||
|
||||
</Grid>
|
||||
|
||||
<Grid ColumnDefinitions="Auto, *"
|
||||
ColumnSpacing="10"
|
||||
Padding="5"
|
||||
HorizontalOptions="Fill"
|
||||
Margin="20, 10">
|
||||
|
||||
<Label Grid.Column="0"
|
||||
Text="Expected end date:"
|
||||
VerticalOptions="Center"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<DatePicker x:Name="EndDatePicker"
|
||||
Grid.Column="1"
|
||||
VerticalOptions="Center"
|
||||
WidthRequest="200"
|
||||
HorizontalOptions="End" />
|
||||
|
||||
</Grid>
|
||||
|
||||
<Grid RowDefinitions="*, Auto"
|
||||
ColumnDefinitions="*, Auto"
|
||||
HorizontalOptions="Fill"
|
||||
HeightRequest="40"
|
||||
Margin="30, 20, 30, 0">
|
||||
|
||||
<Label Text="Courses"
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
FontSize="15"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Fill"
|
||||
HorizontalTextAlignment="Start"
|
||||
HeightRequest="20" />
|
||||
|
||||
<Button Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Text=""
|
||||
FontFamily="Phosphor"
|
||||
FontSize="15"
|
||||
WidthRequest="20"
|
||||
HeightRequest="20"
|
||||
TextColor="AliceBlue"
|
||||
BackgroundColor="Transparent"
|
||||
HorizontalOptions="End"
|
||||
VerticalOptions="Center"
|
||||
Clicked="AddCourseButton_OnClicked"/>
|
||||
</Grid>
|
||||
|
||||
<BoxView
|
||||
Color="AliceBlue"
|
||||
HeightRequest="2"
|
||||
HorizontalOptions="Fill"
|
||||
Margin="30, 0, 30, 20" />
|
||||
|
||||
|
||||
|
||||
<VerticalStackLayout x:Name="CourseButtonStack"
|
||||
Margin="30,10"
|
||||
HorizontalOptions="Fill"
|
||||
Spacing="5"/>
|
||||
</VerticalStackLayout>
|
||||
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage.Content>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user