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.

182 lines
8.7 KiB

  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.AcceptedFutureBookingDetailPage"
  5. xmlns:vm="clr-namespace:GMCabsDriverAssistantSolution.ViewModels"
  6. xmlns:models="clr-namespace:GMCabsDriverAssistant.Models"
  7. x:DataType="vm:AcceptedFutureBookingDetailViewModel"
  8. Title="{Binding Title}">
  9. <ContentPage.Resources>
  10. <ResourceDictionary>
  11. <Style x:Key="InnerFrameLabel" TargetType="Label">
  12. <Setter Property="HorizontalTextAlignment" Value="Center"/>
  13. <Setter Property="FontAttributes" Value="Bold"/>
  14. <Setter Property="TextColor" Value="Black"/>
  15. <Setter Property="FontSize" Value="25"/>
  16. </Style>
  17. <Style x:Key="OuterFrameLabel" TargetType="Label">
  18. <Setter Property="HorizontalTextAlignment" Value="Center"/>
  19. <Setter Property="FontAttributes" Value="Bold"/>
  20. <Setter Property="TextColor" Value="Black"/>
  21. <Setter Property="FontSize" Value="25"/>
  22. </Style>
  23. <Style x:Key="BellowFrameStyle" TargetType="Frame">
  24. <Setter Property="BackgroundColor" Value="#C4C4C4"/>
  25. <Setter Property="WidthRequest" Value="70"/>
  26. </Style>
  27. <Color x:Key="Accent">#96d1ff</Color>
  28. </ResourceDictionary>
  29. </ContentPage.Resources>
  30. <ContentPage.Content>
  31. <StackLayout Orientation="Vertical"
  32. Padding="20,5,20,5"
  33. BackgroundColor="#DCDCDC">
  34. <!--
  35. <Label
  36. TextColor="Black"
  37. HorizontalTextAlignment="Center"
  38. FontSize="25">
  39. <Label.Triggers>
  40. <DataTrigger TargetType="Label" Binding="{Binding IsFutureBooking}" Value="True">
  41. <Setter Property="Text" Value=""/>
  42. </DataTrigger>
  43. <DataTrigger TargetType="Label" Binding="{Binding IsFutureBooking}" Value="False">
  44. <Setter Property="Text" Value="{Binding FormattedDistance}" />
  45. </DataTrigger>
  46. </Label.Triggers>
  47. </Label>
  48. -->
  49. <StackLayout Orientation="Horizontal">
  50. <Image Source="green_pin.png"
  51. HeightRequest="40"/>
  52. <Label TextColor="Black"
  53. HorizontalTextAlignment="Start"
  54. FontSize="20"
  55. Margin="10,10,0,0"
  56. Text="{Binding StartSuburb}">
  57. <!--
  58. <Label.Text>
  59. <MultiBinding StringFormat="{}{0} {1}">
  60. <Binding Path="StartAddress" />
  61. <Binding Path="StartSuburb" />
  62. </MultiBinding>
  63. </Label.Text>
  64. -->
  65. </Label>
  66. </StackLayout>
  67. <StackLayout Orientation="Horizontal">
  68. <Image Source="red_pin.png"
  69. HeightRequest="40"/>
  70. <Label TextColor="Black"
  71. HorizontalTextAlignment="Start"
  72. FontSize="20"
  73. Margin="10,10,0,0"
  74. Text="{Binding EndSuburb}">
  75. <!--
  76. <Label.Text>
  77. <MultiBinding StringFormat="{}{0} {1}">
  78. <Binding Path="EndAddress" />
  79. <Binding Path="EndSuburb" />
  80. </MultiBinding>
  81. </Label.Text>
  82. -->
  83. </Label>
  84. </StackLayout>
  85. <Frame CornerRadius="25"
  86. Padding="0"
  87. Margin="0,15,0,0"
  88. BackgroundColor="#BCA70F0F">
  89. <StackLayout>
  90. <Frame BackgroundColor="#C4C4C4"
  91. HeightRequest="28"
  92. Padding="0,5,0,5"
  93. CornerRadius="25">
  94. <StackLayout Orientation="Horizontal"
  95. HorizontalOptions="CenterAndExpand">
  96. <Image Source="clock.png"
  97. Margin="0,0,10,0"/>
  98. <Label
  99. TextColor="Black"
  100. FontAttributes="Bold"
  101. VerticalTextAlignment="Center"
  102. HorizontalTextAlignment="Center"
  103. FontSize="20">
  104. <Label.Triggers>
  105. <DataTrigger TargetType="Label" Binding="{Binding IsFutureBooking}" Value="True">
  106. <Setter Property="Text" Value="{Binding FormattedPickUpTime}"/>
  107. </DataTrigger>
  108. <DataTrigger TargetType="Label" Binding="{Binding IsFutureBooking}" Value="False">
  109. <Setter Property="Text" Value="READY NOW" />
  110. </DataTrigger>
  111. </Label.Triggers>
  112. </Label>
  113. </StackLayout>
  114. </Frame>
  115. <!--<Frame x:Name="corporateVIPFrame" BackgroundColor="Transparent"
  116. HasShadow="False"
  117. Padding="5">-->
  118. <Label x:Name="corporateVipLabel"
  119. Text="Corporate VIP Booking"
  120. TextColor="White"
  121. FontAttributes="Bold"
  122. VerticalTextAlignment="Start"
  123. HorizontalTextAlignment="Center"
  124. FontSize="20"
  125. Padding="5"/>
  126. <!--</Frame>-->
  127. </StackLayout>
  128. </Frame>
  129. <StackLayout Orientation="Horizontal"
  130. Margin="0,5,0,0">
  131. <StackLayout HorizontalOptions="StartAndExpand">
  132. <Label Text="PAYMENT"
  133. HorizontalTextAlignment="Center"
  134. TextColor="Black"
  135. FontSize="15"/>
  136. <Frame Padding="4,12"
  137. WidthRequest="100"
  138. CornerRadius="24"
  139. Style="{StaticResource BellowFrameStyle}">
  140. <Label Text="{Binding FareTypeValue}"
  141. FontSize="20"
  142. Style="{StaticResource InnerFrameLabel}"/>
  143. </Frame>
  144. </StackLayout>
  145. <StackLayout HorizontalOptions="CenterAndExpand">
  146. <Label Text="POINTS"
  147. HorizontalTextAlignment="Center"
  148. TextColor="Black"
  149. FontSize="15"/>
  150. <Frame Style="{StaticResource BellowFrameStyle}"
  151. Padding="4,12"
  152. CornerRadius="24">
  153. <Label Text="{Binding RewardPoints, StringFormat='+{0}'}" FontSize="20"
  154. Style="{StaticResource InnerFrameLabel}"/>
  155. </Frame>
  156. </StackLayout>
  157. <StackLayout HorizontalOptions="EndAndExpand">
  158. <Label Text="FEE"
  159. HorizontalTextAlignment="Center"
  160. TextColor="Black"
  161. FontSize="15"/>
  162. <Frame Style="{StaticResource BellowFrameStyle}"
  163. Padding="4,12"
  164. CornerRadius="24">
  165. <Label Text="{Binding BookingFee, StringFormat='{0}%'}" FontSize="20"
  166. TextColor="#B44444"
  167. Style="{StaticResource InnerFrameLabel}"/>
  168. </Frame>
  169. </StackLayout>
  170. </StackLayout>
  171. <StackLayout VerticalOptions="EndAndExpand"
  172. Margin="0,5,0,0">
  173. <Button
  174. Margin="20,0,20,15"
  175. Text="Decline Booking"
  176. FontSize="20"
  177. TextTransform="Uppercase"
  178. Clicked="OnDeclineBookingClicked"/>
  179. </StackLayout>
  180. </StackLayout>
  181. </ContentPage.Content>
  182. </ContentPage>