MyDetailsPage.xaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <mobile:MobilePage xmlns:local="clr-namespace:PRS.Mobile" xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  5. xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  6. x:Class="PRS.Mobile.MyDetailsPage"
  7. x:Name="_mydetails"
  8. Title="My Details">
  9. <mobile:MobilePage.PrimaryMenu>
  10. <ImageButton
  11. x:Name="_save"
  12. Source="save"
  13. Clicked="SaveDetails_Clicked"
  14. IsVisible="False"/>
  15. </mobile:MobilePage.PrimaryMenu>
  16. <mobile:MobilePage.PageContent>
  17. <Grid Margin="5" RowSpacing="0">
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="auto"/>
  20. <RowDefinition Height="auto"/>
  21. <RowDefinition Height="auto"/>
  22. <RowDefinition Height="auto"/>
  23. <RowDefinition Height="auto"/>
  24. <RowDefinition Height="*"/>
  25. <RowDefinition Height="auto"/>
  26. <RowDefinition Height="*"/>
  27. </Grid.RowDefinitions>
  28. <Label
  29. Grid.Row="0"
  30. Text="Mobile"
  31. FontSize="Medium"
  32. Margin="5,0,0,2"
  33. VerticalOptions="Center"
  34. TextColor="Black"/>
  35. <Frame
  36. Grid.Row="1"
  37. BorderColor="Gray"
  38. CornerRadius="5"
  39. BackgroundColor="LightYellow"
  40. Padding="5,2"
  41. Margin="0"
  42. HasShadow="False">
  43. <mobile:MobileEntry
  44. x:Name="mobileEnt"
  45. HorizontalOptions="FillAndExpand"
  46. VerticalOptions="Fill"
  47. Placeholder="Mobile #"
  48. Keyboard="Plain"
  49. TextChanged="Mobile_OnTextChanged"
  50. MinimumHeightRequest="40"/>
  51. </Frame>
  52. <Label
  53. Grid.Row="2"
  54. Text="Email"
  55. FontSize="Medium"
  56. Margin="5,10,0,2"
  57. VerticalOptions="Center"
  58. TextColor="Black"/>
  59. <Frame
  60. Grid.Row="3"
  61. BorderColor="Gray"
  62. CornerRadius="5"
  63. BackgroundColor="LightYellow"
  64. Padding="5,2"
  65. Margin="0"
  66. HasShadow="False">
  67. <mobile:MobileEntry
  68. x:Name="emailEnt"
  69. Placeholder="Email Address"
  70. HorizontalOptions="FillAndExpand"
  71. VerticalOptions="Fill"
  72. Keyboard="Plain"
  73. TextChanged="Email_OnTextChanged"
  74. MinimumHeightRequest="40"/>
  75. </Frame>
  76. <Label
  77. Grid.Row="4"
  78. Text="Profile Image"
  79. FontSize="Medium"
  80. Margin="5,10,0,2"
  81. VerticalOptions="Center"
  82. TextColor="Black"/>
  83. <Grid
  84. Grid.Row="5">
  85. <local:DocumentViewer
  86. x:Name="_viewer"
  87. IsVisible="False"
  88. Grid.Row="0"
  89. Margin="0"/>
  90. <mobile:MobileCard
  91. x:Name="_noviewer"
  92. BackgroundColor="LightYellow"
  93. IsVisible="False">
  94. <Label
  95. FontSize="Large"
  96. Text="No Image Available"
  97. HorizontalTextAlignment="Center"
  98. VerticalTextAlignment="Center"
  99. TextColor="Silver"/>
  100. </mobile:MobileCard>
  101. <mobile:MobileCard
  102. HeightRequest="40"
  103. WidthRequest="40"
  104. CornerRadius="22"
  105. HorizontalOptions="End"
  106. VerticalOptions="End"
  107. Margin="0,0,10,10"
  108. >
  109. <mobile:MobileMenuButton
  110. x:Name="_images"
  111. Image="camera"
  112. ImageSize="10,10"
  113. HeightRequest="10"
  114. WidthRequest="10"
  115. Position="AlignTopLeft"
  116. >
  117. <mobile:MobileMenuButton.Items>
  118. <mobile:MobileMenuItem Text="Take Photo" Clicked="_imagesphoto_Clicked" />
  119. <mobile:MobileMenuItem Text="Browse Library" Clicked="_imageslibrary_Clicked" />
  120. </mobile:MobileMenuButton.Items>
  121. </mobile:MobileMenuButton>
  122. </mobile:MobileCard>
  123. </Grid>
  124. <Label
  125. Grid.Row="6"
  126. Text="Signature"
  127. FontSize="Medium"
  128. Margin="5,10,0,2"
  129. VerticalOptions="Center"
  130. TextColor="Black"/>
  131. <local:SignatureEditor
  132. Grid.Row="7"
  133. x:Name="Signature"
  134. Changed="Signature_OnChanged"
  135. />
  136. <ImageButton
  137. x:Name="ClearSignature"
  138. Grid.Row="7"
  139. Source="cross"
  140. HeightRequest="30"
  141. WidthRequest="30"
  142. HorizontalOptions="End"
  143. VerticalOptions="End"
  144. Margin="0,0,5,5"
  145. Clicked="ClearSignature_OnClicked" />
  146. </Grid>
  147. </mobile:MobilePage.PageContent>
  148. </mobile:MobilePage>