Iyon_Groznyy

Untitled

Sep 10th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.78 KB | None | 0 0
  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:local="clr-namespace:XamarinTest.ViewModel"
  4.             x:Class="XamarinTest.Views.ReportView">
  5.    
  6.     <ContentPage.Content>
  7.       <StackLayout>
  8.             <ListView  x:Name="gridReport" ItemsSource="{Binding Report}" HasUnevenRows ="True" HorizontalScrollBarVisibility="Always">
  9.                 <ListView.ItemTemplate>
  10.                     <DataTemplate>
  11.                         <ViewCell>
  12.                             <ScrollView Orientation="Both" VerticalOptions="EndAndExpand">
  13.                                 <Grid x:Name="grid" Padding="10" ColumnSpacing="2" HeightRequest="120">
  14.                                     <Grid.RowDefinitions>
  15.                                         <RowDefinition Height="110" />
  16.                                         <RowDefinition Height="110" />
  17.                                         <RowDefinition Height="110" />
  18.                                         <RowDefinition Height="110" />
  19.                                         <RowDefinition Height="110" />
  20.                                         <RowDefinition Height="110" />
  21.                                     </Grid.RowDefinitions>
  22.                                     <Grid.ColumnDefinitions>
  23.                                         <ColumnDefinition Width="70" />
  24.                                         <ColumnDefinition Width="200" />
  25.                                         <ColumnDefinition Width="200" />
  26.                                         <ColumnDefinition Width="200" />
  27.                                         <ColumnDefinition Width="200" />
  28.                                         <ColumnDefinition Width="100" />
  29.                                         <!--{Binding openReport}-->
  30.                                     </Grid.ColumnDefinitions>
  31.                                     <!--<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"/>-->
  32.                                     <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="0">
  33.                                         <Label Text="{Binding Item1}" VerticalOptions="Center"  HorizontalOptions="Center"/>
  34.                                     </Frame>
  35.                                     <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="1">
  36.                                         <Label Text="{Binding Item2}" VerticalOptions="Center"  HorizontalOptions="Center"/>
  37.                                     </Frame>
  38.                                     <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="2">
  39.                                         <Label Text="{Binding Item3}" VerticalOptions="Center"  HorizontalOptions="Center"/>
  40.                                     </Frame>
  41.                                     <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="3">
  42.                                         <Label Text="{Binding Item4}" VerticalOptions="Center"  HorizontalOptions="Center"/>
  43.                                     </Frame>
  44.                                     <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="4">
  45.                                         <Label Text="{Binding Item5}" VerticalOptions="Center"  HorizontalOptions="Center"/>
  46.                                     </Frame>
  47.                                     <Button IsEnabled="{Binding Item6}" BackgroundColor="Gray" Text="{Binding Item7}" Command="{Binding Source={x:Reference gridReport}, Path=BindingContext.verificateRow}" CommandParameter="{Binding .}"  FontAttributes="Bold" FontSize="20" TextColor="Black" BorderWidth="1" BorderColor="Black" Grid.Column="5"/>
  48.                                 </Grid>
  49.                             </ScrollView>
  50.                         </ViewCell>
  51.                     </DataTemplate>
  52.                 </ListView.ItemTemplate>
  53.             </ListView>
  54.             <FlexLayout Margin="5">
  55.                 <Button x:Name="btnComplies" Text="Complies" BackgroundColor="Green" Margin="20,0,20,0" FontSize="12" FontAttributes="Bold" Clicked="btnComplies_Clicked"/>
  56.                 <Button x:Name="btnDComply" Text="Doesn't comply" BackgroundColor="Red" Margin="0,0,20,0" FontSize="12" FontAttributes="Bold" Clicked="btnDComply_Clicked"/>
  57.                 <Button x:Name="btnNA" Text="Not applicable" BackgroundColor="Yellow" FontSize="12" Margin="0,0,20,0" FontAttributes="Bold" Clicked="btnNA_Clicked"/>
  58.             </FlexLayout>          
  59.         </StackLayout>
  60.     </ContentPage.Content>
  61. </ContentPage>
Add Comment
Please, Sign In to add comment