Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:local="clr-namespace:TableViewCross"
- x:Class="TableViewCross.MainPage">
- <ContentPage.Padding>
- <OnPlatform x:TypeArguments="Thickness"
- iOS="0,20,0,0"/>
- </ContentPage.Padding>
- <StackLayout>
- <TableView x:Name="tableView" Intent="Form">
- <TableView.BindingContext>
- <local:PersonalInformation/>
- </TableView.BindingContext>
- <TableRoot Title="Data Form">
- <TableSection Title="Personal Information">
- <EntryCell Label="Name:"
- Text="{Binding Name}"
- Placeholder="Enter Name"
- Keyboard="Text" />
- <EntryCell Label="Email:"
- Text="{Binding EmailAddress}"
- Placeholder="Enter email Address"
- Keyboard="Email" />
- <EntryCell Label="Phone:"
- Text="{Binding PhoneNumber}"
- Placeholder="Enter phone number"
- Keyboard="Telephone" />
- <EntryCell Label="Age:"
- Text="{Binding Age}"
- Placeholder="Enter Age"
- Keyboard="Numeric" />
- <SwitchCell Text="Are you a programmer?"
- On="{Binding IsProgrammer}"/>
- </TableSection>
- </TableRoot>
- </TableView>
- <Label x:Name="summaryLabel"
- VerticalOptions="CenterAndExpand"/>
- <Button Text="Submit"
- HorizontalOptions="Center"
- Clicked="OnSubmitButtonClicked"/>
- </StackLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement