Last active
May 17, 2020 03:17
-
-
Save nekszer/f8805b2280997eab7aa0a43f3fa605d1 to your computer and use it in GitHub Desktop.
Xamarin View To PDF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage ... | |
BackgroundColor="#eeeeee" | |
Title="PDF Checklist"> | |
<ContentPage.ToolbarItems> | |
<ToolbarItem Text="Exportar a pdf" Command="{Binding Save}" /> | |
</ContentPage.ToolbarItems> | |
<ContentPage.Content> | |
<ScrollView> | |
<Grid> | |
<StackLayout Spacing="12" Padding="20"> | |
<Label Text="EVALUACIÓN DE ESTACIONES" HorizontalTextAlignment="Center" TextColor="Black" FontAttributes="Bold" FontSize="Medium" /> | |
<Grid> | |
<BoxView BackgroundColor="Black" /> | |
<BoxView BackgroundColor="White" Margin="1" /> | |
<Grid ColumnSpacing="0" RowSpacing="0" Margin="1"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="1" /> | |
<RowDefinition Height="Auto" /> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="4*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="2*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="2*" /> | |
</Grid.ColumnDefinitions> | |
<Label Grid.Column="0" Grid.Row="0" TextColor="Black" FontAttributes="Bold" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="Nombre de la estacion"/> | |
<BoxView Grid.Column="1" Grid.Row="0" Color="Black" WidthRequest="1" /> | |
<Label Grid.Column="2" Grid.ColumnSpan="3" Grid.Row="0" TextColor="Black" FontAttributes="Bold" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="{Binding Estacion}"/> | |
<BoxView Grid.Column="5" Grid.Row="0" Color="Black" WidthRequest="1" /> | |
<Label Grid.Column="6" Grid.Row="0" TextColor="Black" FontAttributes="Bold" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="{Binding Semana}" /> | |
<BoxView Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="7" HeightRequest="1" BackgroundColor="Black" /> | |
<Label Grid.Column="0" Grid.Row="2" TextColor="White" FontAttributes="Bold" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="Nombre del gerente" BackgroundColor="DodgerBlue" /> | |
<BoxView Grid.Column="1" Grid.Row="2" Color="Black" WidthRequest="1" BackgroundColor="DodgerBlue" /> | |
<Label Grid.Column="2" Grid.Row="2" Grid.ColumnSpan="5" TextColor="White" FontAttributes="Bold" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="{Binding Gerente}" BackgroundColor="DodgerBlue" /> | |
</Grid> | |
</Grid> | |
<!-- Start Normatividad --> | |
<StackLayout> | |
<StackLayout.Triggers> | |
<DataTrigger TargetType="StackLayout" Binding="{Binding Source=Imagen, Path=Count}" Value="0"> | |
<Setter Property="IsVisible" Value="False" /> | |
</DataTrigger> | |
</StackLayout.Triggers> | |
<Label Text="CHECKLIST DE NORMATIVIDAD" HorizontalTextAlignment="Center" TextColor="Black" FontAttributes="Bold" FontSize="Medium" /> | |
<Grid RowSpacing="0"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="*" /> | |
</Grid.RowDefinitions> | |
<BoxView Grid.Row="0" Grid.RowSpan="2" Color="Black"/> | |
<BoxView Grid.Row="0" BackgroundColor="DodgerBlue" Margin="1" /> | |
<Grid Grid.Row="0" ColumnSpacing="0" RowSpacing="0" Margin="1"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="4*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="2*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="2*" /> | |
</Grid.ColumnDefinitions> | |
<Label Grid.Column="0" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" TextColor="White" Text="Zonas" FontAttributes="Bold" /> | |
<BoxView Grid.Column="1" Color="Black" WidthRequest="1" /> | |
<Label Grid.Column="2" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" TextColor="White" Text="Resultados" FontAttributes="Bold" /> | |
<BoxView Grid.Column="3" Color="Black" WidthRequest="1" /> | |
<Label Grid.Column="4" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" TextColor="White" Text="Puntos" FontAttributes="Bold" /> | |
<BoxView Grid.Column="5" Color="Black" WidthRequest="1" /> | |
<Label Grid.Column="6" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" TextColor="White" Text="Cumplimiento" FontAttributes="Bold" /> | |
</Grid> | |
<BoxView Grid.Row="1" BackgroundColor="White" Margin="1" /> | |
<StackLayout Grid.Row="1" BindableLayout.ItemsSource="{Binding Normatividad}" Spacing="0" BackgroundColor="#eeeeee" Margin="1"> | |
<BindableLayout.ItemTemplate> | |
<DataTemplate> | |
<Grid ColumnSpacing="0" RowSpacing="0" BackgroundColor="White"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="1" /> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="4*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="2*" /> | |
<ColumnDefinition Width="1" /> | |
<ColumnDefinition Width="2*" /> | |
</Grid.ColumnDefinitions> | |
<Label Grid.Column="0" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="{Binding Nombre}"/> | |
<BoxView Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Color="Black" WidthRequest="1"/> | |
<Label Grid.Column="2" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="{Binding Valor}"/> | |
<BoxView Grid.Column="3" Grid.Row="0" Grid.RowSpan="2" Color="Black" WidthRequest="1"/> | |
<Label Grid.Column="4" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="{Binding Puntos}"/> | |
<BoxView Grid.Column="5" Grid.Row="0" Grid.RowSpan="2" Color="Black" WidthRequest="1"/> | |
<Label Grid.Column="6" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" Text="{Binding Cumplimiento, StringFormat='{0} %'}"/> | |
<BoxView Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="7" HeightRequest="1" BackgroundColor="Black" /> | |
</Grid> | |
</DataTemplate> | |
</BindableLayout.ItemTemplate> | |
</StackLayout> | |
</Grid> | |
</StackLayout> | |
<!-- End Normatividad--> | |
</StackLayout> | |
</Grid> | |
</ScrollView> | |
</ContentPage.Content> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment