You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
4.1 KiB

1 year ago
1 year ago
1 year ago
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="GMCabsDriverAssistantSolution.Views.UserRegistrationGenerateOtpPage"
  5. xmlns:vm="clr-namespace:GMCabsDriverAssistantSolution.ViewModels"
  6. xmlns:custom="clr-namespace:GMCabsDriverAssistantSolution.CustomControls"
  7. Shell.FlyoutBehavior="Disabled">
  8. <ContentPage.BindingContext>
  9. <vm:UserRegistrationGenerateOtpViewModel />
  10. </ContentPage.BindingContext>
  11. <ContentPage.Resources>
  12. <ResourceDictionary>
  13. <Style x:Key="EntryStyle" TargetType="Entry">
  14. <Setter Property="TextColor" Value="#000"></Setter>
  15. <Setter Property="PlaceholderColor" Value="#9999"></Setter>
  16. <Setter Property="TranslationY" Value="1" />
  17. <Setter Property="MinimumHeightRequest" Value="36" />
  18. </Style>
  19. <Style x:Key="NoUnderlineEntryFrameStyle" TargetType="Frame">
  20. <Setter Property="Padding">
  21. <OnPlatform x:TypeArguments="Thickness">
  22. <On Platform="Android">16,4</On>
  23. <On Platform="iOS">16</On>
  24. </OnPlatform>
  25. </Setter>
  26. <Setter Property="CornerRadius" Value="12"></Setter>
  27. <Setter Property="HasShadow" Value="True"></Setter>
  28. <Setter Property="MinimumHeightRequest" Value="50" />
  29. <Setter Property="BackgroundColor" Value="White" />
  30. </Style>
  31. </ResourceDictionary>
  32. </ContentPage.Resources>
  33. <ContentPage.Content>
  34. <StackLayout Padding="16"
  35. Orientation="Vertical"
  36. BackgroundColor="#DCDCDC">
  37. <Label Text="User Registration"
  38. HorizontalOptions="CenterAndExpand"
  39. FontSize="Title"
  40. TextColor="Black"/>
  41. <Label Text="Enter your mobile number to register"
  42. HorizontalOptions="CenterAndExpand"
  43. FontSize="Medium"
  44. Margin="0,16,0,0"
  45. TextColor="Gray"/>
  46. <Frame Style="{StaticResource NoUnderlineEntryFrameStyle}"
  47. Margin="{OnIdiom Phone='0,32,0,0',Tablet='270,0,270,0'}">
  48. <Grid MinimumHeightRequest="50" >
  49. <Grid.ColumnDefinitions>
  50. <ColumnDefinition Width="36"/>
  51. <ColumnDefinition Width="*"/>
  52. </Grid.ColumnDefinitions>
  53. <Image Source="phone_image.png"
  54. HeightRequest="36"
  55. WidthRequest="36"
  56. Aspect="AspectFit"/>
  57. <custom:NoUnderlineEntry Grid.Column="1"
  58. x:Name="PhoneNumber"
  59. FontSize="20"
  60. Keyboard="Telephone"
  61. MaxLength="10"
  62. Text="{Binding PhoneNumber}"
  63. Placeholder="Mobile Number"
  64. Style="{StaticResource EntryStyle}"
  65. Margin="0,0,0,-8"/>
  66. </Grid>
  67. </Frame>
  68. <Button Text="REGISTER"
  69. FontSize="20"
  70. Margin="{OnIdiom Phone='0,32,0,0',Tablet='270,0,270,0'}"
  71. VerticalOptions="EndAndExpand"
  72. Command="{Binding Register}"/>
  73. <Label Text="{Binding ErrorMessage}"
  74. TextColor="Red"
  75. HorizontalTextAlignment="Center"
  76. FontSize="20"
  77. VerticalOptions="EndAndExpand"/>
  78. <Button Text="Back"
  79. FontSize="20"
  80. Margin="{OnIdiom Phone='0,16,0,10',Tablet='270,0,270,0'}"
  81. Command="{Binding Back}"/>
  82. </StackLayout>
  83. </ContentPage.Content>
  84. </ContentPage>