AssignmentList.xaml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ContentPage
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  6. x:Class="comal.timesheets.AssignmentList"
  7. xmlns:local="clr-namespace:comal.timesheets"
  8. xmlns:schedule="clr-namespace:Syncfusion.SfSchedule.XForms;assembly=Syncfusion.SfSchedule.XForms"
  9. >
  10. <ContentPage.BindingContext>
  11. <local:AssignmentListDataModel x:Name="DataModel"/>
  12. </ContentPage.BindingContext>
  13. <NavigationPage.TitleView>
  14. <Grid Margin="0" Padding="0">
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="*"/>
  17. <ColumnDefinition Width="Auto"/>
  18. </Grid.ColumnDefinitions>
  19. <Label
  20. Grid.Column="0"
  21. x:Name="Title"
  22. Text="Assignments"
  23. VerticalOptions="Center"
  24. HorizontalOptions="Center"
  25. HorizontalTextAlignment="Center"
  26. TextColor="White"
  27. FontSize="Medium"
  28. FontAttributes="Bold"
  29. BackgroundColor="Transparent"/>
  30. <StackLayout
  31. Grid.Column="1"
  32. Orientation="Horizontal"
  33. x:Name="Buttons">
  34. <Image
  35. x:Name="SelectDate"
  36. Aspect="AspectFit"
  37. WidthRequest="30"
  38. HorizontalOptions="End"
  39. Margin="5,5,0,5">
  40. <Image.Source>
  41. <OnPlatform x:TypeArguments="ImageSource">
  42. <OnPlatform.Platforms>
  43. <On Platform="iOS" Value="calendar"/>
  44. <On Platform="Android" Value="calendar"/>
  45. </OnPlatform.Platforms>
  46. </OnPlatform>
  47. </Image.Source>
  48. <Image.GestureRecognizers>
  49. <TapGestureRecognizer Tapped="SelectedDate_Tapped"/>
  50. </Image.GestureRecognizers>
  51. </Image>
  52. <DatePicker x:Name="DatePicker" IsVisible="False" DateSelected="DatePicker_OnDateSelected" />
  53. <Image
  54. x:Name="SelectEmployees"
  55. Aspect="AspectFit"
  56. WidthRequest="30"
  57. HorizontalOptions="End"
  58. Margin="5">
  59. <Image.Source>
  60. <OnPlatform x:TypeArguments="ImageSource">
  61. <OnPlatform.Platforms>
  62. <On Platform="iOS" Value="user"/>
  63. <On Platform="Android" Value="user"/>
  64. </OnPlatform.Platforms>
  65. </OnPlatform>
  66. </Image.Source>
  67. <Image.GestureRecognizers>
  68. <TapGestureRecognizer Tapped="SelectEmployees_Tapped"/>
  69. </Image.GestureRecognizers>
  70. </Image>
  71. </StackLayout>
  72. </Grid>
  73. </NavigationPage.TitleView>
  74. <ContentPage.Content>
  75. <ScrollView>
  76. <Grid x:Name="Grid">
  77. <Grid.RowDefinitions>
  78. <RowDefinition Height="1350"/>
  79. </Grid.RowDefinitions>
  80. </Grid>
  81. </ScrollView>
  82. </ContentPage.Content>
  83. </ContentPage>