Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  3. xmlns:local="clr-namespace:TableViewCross"
  4. x:Class="TableViewCross.MainPage">
  5.  
  6. <ContentPage.Padding>
  7. <OnPlatform x:TypeArguments="Thickness"
  8. iOS="0,20,0,0"/>
  9. </ContentPage.Padding>
  10.  
  11. <StackLayout>
  12. <TableView x:Name="tableView" Intent="Form">
  13.  
  14. <TableView.BindingContext>
  15. <local:PersonalInformation/>
  16. </TableView.BindingContext>
  17.  
  18. <TableRoot Title="Data Form">
  19. <TableSection Title="Personal Information">
  20. <EntryCell Label="Name:"
  21. Text="{Binding Name}"
  22. Placeholder="Enter Name"
  23. Keyboard="Text" />
  24. <EntryCell Label="Email:"
  25. Text="{Binding EmailAddress}"
  26. Placeholder="Enter email Address"
  27. Keyboard="Email" />
  28. <EntryCell Label="Phone:"
  29. Text="{Binding PhoneNumber}"
  30. Placeholder="Enter phone number"
  31. Keyboard="Telephone" />
  32. <EntryCell Label="Age:"
  33. Text="{Binding Age}"
  34. Placeholder="Enter Age"
  35. Keyboard="Numeric" />
  36. <SwitchCell Text="Are you a programmer?"
  37. On="{Binding IsProgrammer}"/>
  38. </TableSection>
  39. </TableRoot>
  40.  
  41. </TableView>
  42.  
  43. <Label x:Name="summaryLabel"
  44. VerticalOptions="CenterAndExpand"/>
  45.  
  46. <Button Text="Submit"
  47. HorizontalOptions="Center"
  48. Clicked="OnSubmitButtonClicked"/>
  49.  
  50. </StackLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement