Skip to content

Instantly share code, notes, and snippets.

@GermanHoyos
Created January 27, 2023 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GermanHoyos/2ffed121e9d9b7026e0b1c6f36c2ce9a to your computer and use it in GitHub Desktop.
Save GermanHoyos/2ffed121e9d9b7026e0b1c6f36c2ce9a to your computer and use it in GitHub Desktop.
Formating XAML Page
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="DegreePlanner.MainPage">
<StackLayout>
<Frame BackgroundColor="#2196F3" Padding="0" CornerRadius="0">
<Label Text="WGU Degree Planner" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/>
</Frame>
<Grid RowSpacing="0" ColumnSpacing="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label Text="Terms"
Grid.Column="0"
Grid.Row="0"
Grid.ColumnSpan="3"
BackgroundColor="PowderBlue"
TextColor="white"
FontSize="Title"
HorizontalTextAlignment="Center"
></Label>
<Button Text="Add Term"
Grid.Column="0"
Grid.Row="1"
Grid.RowSpan="1"
Clicked="AddTermButton"
/>
<Button Text="Delete Term"
Grid.Column="1"
Grid.Row="1"
Grid.RowSpan="1"
Clicked="DeleteTermButton"
/>
<Button Text="Update Term"
Grid.Column="2"
Grid.Row="1"
Grid.RowSpan="1"
Clicked="UpdateTermButton"
/>
<Label Text="Courses"
Grid.Column="0"
Grid.Row="2"
Grid.ColumnSpan="3"
BackgroundColor="PowderBlue"
TextColor="white"
FontSize="Title"
HorizontalTextAlignment="Center"
></Label>
<Button Text="Add Course"
Grid.Column="0"
Grid.Row="3"
Grid.RowSpan="1"
Clicked="AddCourseButton"
/>
<Button Text="Delete Crse"
Grid.Column="1"
Grid.Row="3"
Grid.RowSpan="1"
Clicked="DeleteCourseButton"
/>
<Button Text="Update Crse"
Grid.Column="2"
Grid.Row="3"
Grid.RowSpan="1"
Clicked="UpdateCourseButton"
/>
</Grid>
<ListView x:Name = "fullViewOfTermsCourses"
BackgroundColor="PowderBlue"
HeightRequest="1"
>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell IsEnabled="True">
<StackLayout Orientation="Horizontal" HorizontalOptions="CenterAndExpand">
<Label Text="test" VerticalOptions="CenterAndExpand" TextColor="Blue"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment