Skip to content

Instantly share code, notes, and snippets.

@saamerm
Created July 5, 2020 05:28
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 saamerm/3940c1b5105534a92a6319fc07689c06 to your computer and use it in GitHub Desktop.
Save saamerm/3940c1b5105534a92a6319fc07689c06 to your computer and use it in GitHub Desktop.
Feedback form Xaml code for Xamarin
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" x:Class="XamarinGoogleSheetsDB.MainPage"
BackgroundColor="LightGray">
<StackLayout HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Padding="40" WidthRequest="400">
<Label Text="FEEDBACK" FontAttributes="Bold" FontSize="Title"/>
<Entry x:Name="NameEntry" Placeholder="Name" ReturnType="Next" />
<Entry x:Name="EmailEntry" Placeholder="Email" ReturnType="Next" Keyboard="Email" />
<Entry x:Name="PhoneEntry" Placeholder="Phone" ReturnType="Next" Keyboard="Numeric"/>
<Entry x:Name="FeedbackEntry" Placeholder="Feedback" HeightRequest="100" ReturnType="Send"/>
<Button x:Name="SubmitButton" Text="Submit" BackgroundColor="White" Pressed="SubmitButton_Pressed" />
<Label x:Name="ResultLabel" IsVisible="false"/>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment