Skip to content

Instantly share code, notes, and snippets.

@kphillpotts
Created July 8, 2015 10:22
Show Gist options
  • Save kphillpotts/ad8220bfdab8d058d61f to your computer and use it in GitHub Desktop.
Save kphillpotts/ad8220bfdab8d058d61f to your computer and use it in GitHub Desktop.
Login Page with Grid
<?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="LoginPage.LoginForm" BackgroundImage="BackgroundImage">
<Grid VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="AUTO"/>
<RowDefinition Height="AUTO"/>
<RowDefinition Height="AUTO"/>
<RowDefinition Height="AUTO"/>
<RowDefinition Height="AUTO"/>
<RowDefinition Height="AUTO"/>
</Grid.RowDefinitions>
<Entry Grid.Row="1" Text="" Placeholder="User Name"/>
<Entry Grid.Row="2" IsPassword="true" Placeholder="Password"/>
<Grid Grid.Row="3" HorizontalOptions="Center" Padding="0, 10, 0, 10">
<Label Text="Remember Me" TextColor="Black" Grid.Row="0" Grid.Column="0" />
<Switch IsToggled="True" Grid.Row="0" Grid.Column="1" />
</Grid>
<Button Grid.Row="4" Text="Login" BorderRadius="0" BackgroundColor="Blue"/>
<Label Grid.Row="5" HorizontalOptions="Center" Text="Create An Account"/>
<Label Grid.Row="6" HorizontalOptions="Center" Text="v 2.0.0.0"/>
</Grid>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment