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.

79 lines
4.1 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.NotificationsPage"
  5. xmlns:vm="clr-namespace:GMCabsDriverAssistantSolution.ViewModels"
  6. Title="{Binding Title}">
  7. <ContentPage.BindingContext>
  8. <vm:NotificationsViewModel />
  9. </ContentPage.BindingContext>
  10. <ContentPage.Resources>
  11. <ResourceDictionary>
  12. <Color x:Key="Accent">#96d1ff</Color>
  13. </ResourceDictionary>
  14. </ContentPage.Resources>
  15. <ContentPage.Content>
  16. <StackLayout Orientation="Vertical"
  17. BackgroundColor="#DCDCDC">
  18. <Frame Margin="16"
  19. CornerRadius="8"
  20. VerticalOptions="FillAndExpand"
  21. Padding="8">
  22. <StackLayout Orientation="Vertical">
  23. <StackLayout Orientation="Horizontal"
  24. HorizontalOptions="StartAndExpand"
  25. Margin="8">
  26. <StackLayout Orientation="Vertical" >
  27. <Image Source="message.png" HeightRequest="50"/>
  28. <Image Source="ImportantIconSmall.png"
  29. HeightRequest="40"
  30. VerticalOptions="CenterAndExpand"/>
  31. </StackLayout>
  32. <StackLayout Orientation="Vertical"
  33. HorizontalOptions="FillAndExpand">
  34. <Label Text="{Binding SelectedNotification.Subject}"
  35. TextColor="Black"
  36. FontSize="28"/>
  37. <Grid HorizontalOptions="StartAndExpand">
  38. <Grid.RowDefinitions>
  39. <RowDefinition Height="*" />
  40. <RowDefinition Height="*" />
  41. <RowDefinition Height="*" />
  42. </Grid.RowDefinitions>
  43. <Grid.ColumnDefinitions>
  44. <ColumnDefinition Width="Auto" />
  45. <ColumnDefinition Width="1*" />
  46. </Grid.ColumnDefinitions>
  47. <Label Text="FROM"
  48. FontSize="15"
  49. Grid.Row="0"
  50. Grid.Column="0"/>
  51. <Label Text="{Binding SelectedNotification.FromName}"
  52. TextColor="Black"
  53. FontSize="16"
  54. Grid.Row="0"
  55. Grid.Column="1"/>
  56. <Label Text="SENT"
  57. FontSize="15"
  58. Grid.Row="1"
  59. Grid.Column="0"/>
  60. <Label Text="{Binding SelectedNotification.SentDate, StringFormat='{0:dd/MM/yyyy hh:mm tt}'}"
  61. FontSize="15"
  62. Grid.Row="1"
  63. Grid.Column="1"/>
  64. </Grid>
  65. </StackLayout>
  66. </StackLayout>
  67. <ScrollView VerticalOptions="StartAndExpand" Padding="16, 0">
  68. <Label Text="{Binding SelectedNotification.Body}"
  69. FontSize="20"
  70. TextColor="Black" />
  71. </ScrollView>
  72. <Button Margin="8,0,8,0"
  73. FontSize="20"
  74. Text="Ok"
  75. Command="{Binding MarkNotificationAsViewedCommand}"/>
  76. </StackLayout>
  77. </Frame>
  78. </StackLayout>
  79. </ContentPage.Content>
  80. </ContentPage>