Iyon_Groznyy

Untitled

Sep 9th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.30 KB | None | 0 0
  1. <ContentPage.Content>
  2.       <StackLayout>
  3.             <CollectionView x:Name="gridReport" ItemsSource="{Binding report}" ItemsLayout ="VerticalList">
  4.                 <CollectionView.Header >
  5.                     <Grid x:Name="grid" Padding="10" ColumnSpacing="2" HeightRequest="90" >
  6.                         <Grid.RowDefinitions>
  7.                             <RowDefinition Height="80" />
  8.                             <RowDefinition Height="80" />
  9.                             <RowDefinition Height="80" />
  10.                             <RowDefinition Height="80" />
  11.                         </Grid.RowDefinitions>
  12.                         <Grid.ColumnDefinitions>
  13.                             <ColumnDefinition Width="95" />
  14.                             <ColumnDefinition Width="100" />
  15.                             <ColumnDefinition Width="100" />
  16.                             <ColumnDefinition Width="80" />
  17.                         </Grid.ColumnDefinitions>
  18.                         <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="0">
  19.                             <Label Text="Report name" TextColor="Black" FontAttributes="Bold"/>
  20.                         </Frame>
  21.                         <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="1" >
  22.                             <Label Text="Review coverage" TextColor="Black" FontAttributes="Bold"/>
  23.                         </Frame>
  24.                         <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="2">
  25.                             <Label Text="Warnings" TextColor="Black" FontAttributes="Bold"/>
  26.                         </Frame>
  27.                         <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="3">
  28.                             <Label Text="Errors" TextColor="Black" FontAttributes="Bold"/>
  29.                         </Frame>
  30.                     </Grid>
  31.                 </CollectionView.Header>
  32.                 <CollectionView.ItemTemplate>
  33.                     <DataTemplate>
  34.                         <Grid x:Name="grid" Padding="10" ColumnSpacing="2" HeightRequest="90">
  35.                             <Grid.RowDefinitions>
  36.                                 <RowDefinition Height="80" />
  37.                                 <RowDefinition Height="80" />
  38.                                 <RowDefinition Height="80" />
  39.                                 <RowDefinition Height="80" />
  40.                             </Grid.RowDefinitions>
  41.                             <Grid.ColumnDefinitions>
  42.                                 <ColumnDefinition Width="165" />
  43.                                 <ColumnDefinition Width="70" />
  44.                                 <ColumnDefinition Width="70" />
  45.                                 <ColumnDefinition Width="70" />
  46.                                 <!--{Binding openReport}-->
  47.                             </Grid.ColumnDefinitions>
  48.                             <!--<Frame BackgroundColor="GhostWhite" Text="{Binding m_sReportName}" Command="{Binding Source={x:Reference gridReports}, Path=BindingContext.openReport}" CommandParameter="{Binding m_sReportName}" BorderWidth="1" BorderColor="Black" Grid.Column="0"/>-->
  49.                             <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="0">
  50.                                 <Label Text="{Binding report}" />
  51.                             </Frame>
  52.                             <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="1">
  53.                                 <Label Text="{Binding m_nCoverage}" />
  54.                             </Frame>
  55.                             <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="2">
  56.                                 <Label Text="{Binding m_nCoverage}" />
  57.                             </Frame>
  58.                             <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="3">
  59.                                 <Label Text="{Binding m_nCoverage}" />
  60.                             </Frame>
  61.                             <Button BackgroundColor="GhostWhite" Text="{Binding m_nErrors}" BorderWidth="1" BorderColor="Black" Grid.Column="4"/>
  62.                         </Grid>
  63.                     </DataTemplate>
  64.                 </CollectionView.ItemTemplate>
  65.             </CollectionView>
  66.         </StackLayout>
  67.     </ContentPage.Content>
  68. </ContentPage>
Advertisement
Add Comment
Please, Sign In to add comment