NewReplyNotification.xaml 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <timesheets:BasePage xmlns:timesheets="clr-namespace:comal.timesheets" xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  4. x:Class="comal.timesheets.NewReplyNotification">
  5. <NavigationPage.TitleView>
  6. <Grid Margin="0" Padding="0">
  7. <Grid.ColumnDefinitions>
  8. <ColumnDefinition Width="*"/>
  9. <ColumnDefinition Width="*"/>
  10. <ColumnDefinition Width="*"/>
  11. </Grid.ColumnDefinitions>
  12. <Button Grid.Column="0" HorizontalOptions="Start" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  13. Text="Exit" Clicked="ExitBtn_Clicked"/>
  14. <Label Grid.Column="1" Text="Message" VerticalOptions="Center"
  15. HorizontalOptions="Center" HorizontalTextAlignment="Center" TextColor="White" FontSize="Medium" FontAttributes="Bold"/>
  16. <Button Grid.Column="2" HorizontalOptions="End" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  17. Text="Send" Clicked="SendBtn_Clicked"/>
  18. </Grid>
  19. </NavigationPage.TitleView>
  20. <timesheets:BasePage.PageContent>
  21. <StackLayout>
  22. <ScrollView>
  23. <StackLayout Orientation="Vertical" VerticalOptions="StartAndExpand" Padding="5">
  24. <!--Row 0 Title-->
  25. <Frame HasShadow="False" BorderColor="Gray" Padding="10" >
  26. <material:MaterialLabel x:Name="titleLbl" Text="New Notification" TypeScale="H6" HorizontalTextAlignment="Center" Margin="5" HorizontalOptions="Center"/>
  27. </Frame>
  28. <!--Row 1 Recipient-->
  29. <material:MaterialLabel Text="Recipient" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" />
  30. <Frame HasShadow="False" Padding="10" BorderColor="#15C7C1">
  31. <Grid>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition Width="auto"/>
  34. <ColumnDefinition Width="*"/>
  35. <ColumnDefinition Width="auto"/>
  36. </Grid.ColumnDefinitions>
  37. <Label Grid.Column="0" Text="To:" FontSize="Medium" FontAttributes="Bold" Margin="5" VerticalOptions="Center"/>
  38. <Label Grid.Column="1" x:Name="recipientNameLbl" LineBreakMode="WordWrap" VerticalOptions="Center" FontSize="Medium" FontAttributes="Bold" Margin="2"/>
  39. <Button Grid.Column="2" x:Name="selectRecipientBtn" Clicked="SelectRecipientBtn_Clicked" Text="Select" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold" Margin="2" CornerRadius="5" MinimumHeightRequest="40"/>
  40. </Grid>
  41. </Frame>
  42. <!--Row 2 Notification Title-->
  43. <material:MaterialLabel Text="Notificiation Title" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" />
  44. <Frame x:Name="notificationTitleFrame" HasShadow="False" BorderColor="#15C7C1" Padding="10">
  45. <Editor x:Name="titleEdt" AutoSize="TextChanges" TextChanged="TitleEdt_Changed"/>
  46. </Frame>
  47. <!--Row 3 Description-->
  48. <material:MaterialLabel Text="Description" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5"/>
  49. <Frame HasShadow="False" Padding="10" BorderColor="#15C7C1">
  50. <Editor x:Name="descriptionEdt" AutoSize="TextChanges" TextChanged="DescriptionEdt_Changed"/>
  51. </Frame>
  52. </StackLayout>
  53. </ScrollView>
  54. <!--Row 4 Photos-->
  55. <material:MaterialLabel x:Name="photosLbl" Text="Photos" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5"/>
  56. <Frame HasShadow="False" Padding="10" BorderColor="#15C7C1" x:Name="photosFrame" Margin="5">
  57. <StackLayout Orientation="Vertical">
  58. <Label Text="Tap on photo to view / delete" HorizontalOptions="Center" VerticalOptions="Center"/>
  59. <ScrollView Orientation="Horizontal" x:Name="ImageScroller">
  60. <StackLayout x:Name="images" Orientation="Horizontal" HeightRequest="150" HorizontalOptions="StartAndExpand" VerticalOptions="Fill"/>
  61. </ScrollView>
  62. <Grid>
  63. <Grid.ColumnDefinitions>
  64. <ColumnDefinition Width="*"/>
  65. <ColumnDefinition Width="*"/>
  66. </Grid.ColumnDefinitions>
  67. <Button x:Name="TakePhoto" Grid.Column="0" Text="Camera" Clicked="TakePhoto_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  68. <Button x:Name="ChooseImage" Grid.Column="1" Text="Library" Clicked="ChooseImage_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  69. </Grid>
  70. </StackLayout>
  71. </Frame>
  72. </StackLayout>
  73. </timesheets:BasePage.PageContent>
  74. </timesheets:BasePage>