DigitalFormHost.xaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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"
  4. x:Class="comal.timesheets.DigitalFormHost">
  5. <NavigationPage.TitleView >
  6. <Grid Margin="0" Padding="0">
  7. <Grid.ColumnDefinitions>
  8. <ColumnDefinition Width="Auto"/>
  9. <ColumnDefinition Width="*"/>
  10. <ColumnDefinition Width="Auto"/>
  11. <!-- <ColumnDefinition Width="Auto"/> -->
  12. </Grid.ColumnDefinitions>
  13. <Button Grid.Column="0" HorizontalOptions="Start" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  14. Text="Cancel" Clicked="ExitBtn_Clicked"/>
  15. <Label x:Name="titleLbl" Grid.Column="1" Text="Edit Form" HorizontalOptions="Fill" HorizontalTextAlignment="Center" VerticalOptions="Fill" VerticalTextAlignment="Center" TextColor="White"/>
  16. <Button x:Name="saveProgressBtn" Grid.Column="2" HorizontalOptions="Center" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  17. Text="Save Progress" Clicked="SaveProgressBtn_Clicked" FontAttributes="Bold" IsVisible="true"/>
  18. <Button Grid.Column="2" HorizontalOptions="End" VerticalOptions="Center" TextColor="White" BackgroundColor="Transparent" Margin="0" Padding="0"
  19. x:Name="saveBtn"
  20. Text="Complete" Clicked="SaveBtn_Clicked"/>
  21. </Grid>
  22. </NavigationPage.TitleView>
  23. <ContentPage.Content>
  24. <Grid>
  25. <Grid.RowDefinitions>
  26. <!-- <RowDefinition Height="auto"/> -->
  27. <RowDefinition Height="auto"/>
  28. </Grid.RowDefinitions>
  29. <!-- <Label x:Name="titleLbl" Grid.Row="0" Margin="5" FontAttributes="Bold" FontSize="Medium" HorizontalTextAlignment="Center" HorizontalOptions="FillAndExpand"/> -->
  30. <!--scrollview to display form-->
  31. <ScrollView x:Name="formViewerScroller" Grid.Row="0" Margin="5" Padding="5"/>
  32. <Button Grid.Row="2" Margin="0" TextColor="White" BackgroundColor="#15C7C1" CornerRadius="0" IsVisible="false" FontSize="Medium" HeightRequest="45"
  33. Text="View Attached Document" FontAttributes="Bold" HorizontalOptions="FillAndExpand" VerticalOptions="End"
  34. Clicked="DocumentBtn_Clicked" x:Name="documentBtn"/>
  35. </Grid>
  36. </ContentPage.Content>
  37. </ContentPage>