KanbanEditDetailsView.xaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <local:KanbanEditView
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. xmlns:local="clr-namespace:PRS.Mobile;assembly=PRS.Mobile"
  6. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  7. x:Class="PRS.Mobile.KanbanEditDetailsView"
  8. x:DataType="local:KanbanEditViewModel">
  9. <local:KanbanEditDetailsView.Resources>
  10. <local:KanbanJobNameConverter x:Key="KanbanJobNameConverter"/>
  11. <local:KanbanTypeConverter x:Key="KanbanTypeConverter"/>
  12. <local:KanbanEmployeeConverter x:Key="KanbanEmployeeConverter"/>
  13. </local:KanbanEditDetailsView.Resources>
  14. <local:KanbanEditView.Content>
  15. <Grid
  16. RowSpacing="5">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="*" />
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="Auto" />
  23. <RowDefinition Height="Auto" />
  24. <RowDefinition Height="Auto" />
  25. </Grid.RowDefinitions>
  26. <Frame
  27. Grid.Row="0"
  28. Margin="0"
  29. Padding="5,0"
  30. CornerRadius="5"
  31. HeightRequest="40"
  32. BorderColor="Gray"
  33. BackgroundColor="LightYellow"
  34. HasShadow="False">
  35. <mobile:MobileEntry
  36. Text="{Binding Item.Title, Mode=TwoWay}"
  37. TextChanged="Title_OnTextChanged"
  38. Placeholder="Title"
  39. />
  40. </Frame>
  41. <Frame
  42. Grid.Row="1"
  43. Margin="0"
  44. Padding="0"
  45. CornerRadius="5"
  46. BorderColor="Gray"
  47. BackgroundColor="WhiteSmoke"
  48. HasShadow="False">
  49. <mobile:MobileEditor
  50. x:Name="_description"
  51. VerticalOptions="FillAndExpand"
  52. BackgroundColor="LightYellow"
  53. Text="{Binding Item.Description, Mode=TwoWay}"
  54. TextChanged="_description_OnTextChanged"
  55. Placeholder="Task Description"
  56. />
  57. </Frame>
  58. <mobile:MobileButton
  59. x:Name="_selectjob"
  60. Grid.Row="2"
  61. Text="{Binding Item, Converter={StaticResource KanbanJobNameConverter}}"
  62. HeightRequest="50"
  63. Clicked="_selectjob_Clicked"
  64. />
  65. <mobile:MobileButton
  66. x:Name="_selecttype"
  67. Grid.Row="3"
  68. HeightRequest="50"
  69. Text="{Binding Item, Converter={StaticResource KanbanTypeConverter}}"
  70. Clicked="_selecttype_OnClicked"
  71. />
  72. <mobile:MobileDateButton
  73. x:Name="_duedate"
  74. Prefix="Due:"
  75. Format="dd MMM yy"
  76. Grid.Row="4"
  77. HeightRequest="50"
  78. Date="{Binding Item.DueDate}"
  79. Changed="_duedate_OnChanged"
  80. />
  81. <mobile:MobileButton
  82. x:Name="_selectemployee"
  83. Grid.Row="5"
  84. HeightRequest="50"
  85. Text="{Binding Item, Converter={StaticResource KanbanEmployeeConverter}}"
  86. Clicked="_selectemployee_OnClicked"
  87. />
  88. <mobile:MobileButton
  89. x:Name="_changestatus"
  90. Grid.Row="6"
  91. HeightRequest="50"
  92. Text="{Binding Item.Status}"
  93. Prefix="Status:"
  94. Prompt="Change Status"
  95. Clicked="_changestatus_OnClicked"
  96. />
  97. </Grid>
  98. </local:KanbanEditView.Content>
  99. </local:KanbanEditView>