RecTransCompletion.xaml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage 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.RecTransCompletion">
  5. <NavigationPage.TitleView>
  6. <Button HorizontalOptions="End" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  7. IsVisible="false" x:Name="saveBatchBtn"
  8. Text="Save" Clicked="SaveBatch_Clicked"/>
  9. </NavigationPage.TitleView>
  10. <ContentPage.Content>
  11. <ScrollView>
  12. <StackLayout Margin="10">
  13. <!--Row 0 Notes-->
  14. <material:MaterialLabel Text="Notes" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" HorizontalOptions="Center"/>
  15. <Frame HasShadow="False" Padding="10" BorderColor="Red" CornerRadius="10" x:Name="notesFrame">
  16. <StackLayout>
  17. <Editor x:Name="notesEdt" AutoSize="TextChanges" VerticalOptions="Center" FontSize="Medium" TextChanged="NotesEdt_Changed"/>
  18. <Label Text="Commonly used notes (select to add)" HorizontalOptions="Center" FontAttributes="Bold"/>
  19. <FlexLayout
  20. x:Name="optionsFlexLayout" BackgroundColor="Transparent"
  21. Wrap="Wrap"
  22. Direction="Row"
  23. JustifyContent="SpaceEvenly"
  24. AlignItems="Start"
  25. AlignContent="Start">
  26. </FlexLayout>
  27. </StackLayout>
  28. </Frame>
  29. <!--Row 1 Photos-->
  30. <material:MaterialLabel x:Name="photosLbl" Text="Photos" TypeScale="H6" HorizontalTextAlignment="Start" Margin="5" HorizontalOptions="Center"/>
  31. <Frame HasShadow="False" Padding="10" BorderColor="Red" x:Name="photosFrame" CornerRadius="10">
  32. <StackLayout Orientation="Vertical">
  33. <Label Text="Tap on photo to view / delete" HorizontalOptions="Center" VerticalOptions="Center"/>
  34. <ScrollView Orientation="Horizontal" x:Name="ImageScroller" IsVisible="false">
  35. <StackLayout x:Name="images" Orientation="Horizontal" HeightRequest="150" HorizontalOptions="StartAndExpand" VerticalOptions="Fill"/>
  36. </ScrollView>
  37. <Grid>
  38. <Grid.ColumnDefinitions>
  39. <ColumnDefinition Width="*"/>
  40. <ColumnDefinition Width="*"/>
  41. </Grid.ColumnDefinitions>
  42. <Button x:Name="TakePhoto" Grid.Column="0" Text="Camera" Clicked="TakePhoto_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  43. <Button x:Name="ChooseImage" Grid.Column="1" Text="Library" Clicked="ChooseImage_Clicked" Padding="3" FontSize="Medium" TextColor="White" BackgroundColor="#15C7C1" FontAttributes="Bold"/>
  44. </Grid>
  45. </StackLayout>
  46. </Frame>
  47. </StackLayout>
  48. </ScrollView>
  49. </ContentPage.Content>
  50. </ContentPage>