Skip to content

Instantly share code, notes, and snippets.

@alvintian
Created September 1, 2020 21:50
Show Gist options
  • Save alvintian/2be764a266ef9bc2ba78d8b02e67e697 to your computer and use it in GitHub Desktop.
Save alvintian/2be764a266ef9bc2ba78d8b02e67e697 to your computer and use it in GitHub Desktop.
a screen for The First Prototype
<?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="App1.MainPage" BackgroundColor="#82b051">
<StackLayout Margin="20,35,20,25" HorizontalOptions="Center" >
<Label Text="TLC" HorizontalTextAlignment="Center" TextColor="White" Padding="0,80,0,0" Font="Bold,60"/>
<Label Text="Customer Store" HorizontalTextAlignment="Center" TextColor="White" Font="Bold,20"/>
<Image Source="Xamarin" HeightRequest="100" WidthRequest="100" />
<Label Text="Enter the WebID of your TLC IBO" FontSize="20" TextColor="White" HorizontalTextAlignment="Center" Padding="30,10,30,10"/>
<Frame IsClippedToBounds="true" Padding="0" CornerRadius="10">
<Entry Text="{Binding SiteName}" Placeholder="Web Address.." BackgroundColor="White" />
</Frame>
<StackLayout Orientation="Horizontal" Spacing="5" Margin="20,0,0,0">
<Switch IsToggled="false" Scale="2" HorizontalOptions="StartAndExpand"/>
<Label Text="I read, understand, and agree to TLC's Privacy Policy" TextColor="DarkBlue" FontSize="16" Padding="10,0,30,0"/>
</StackLayout>
<StackLayout Margin="10">
<Button Text="SUBMIT" TextColor="White" VerticalOptions="CenterAndExpand" HorizontalOptions="Center"
CornerRadius="10" BackgroundColor="green" WidthRequest="120" Clicked="Button_Clicked" />
<Label Text="Tap here if you don't have an assigned IBO" TextColor="White" FontSize="14" HorizontalOptions="Center" />
</StackLayout>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment