Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:XamarinTest.ViewModel"
- x:Class="XamarinTest.Views.ReportView">
- <ContentPage.Content>
- <StackLayout>
- <ListView x:Name="gridReport" ItemsSource="{Binding Report}" HasUnevenRows ="True" HorizontalScrollBarVisibility="Always">
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell>
- <ScrollView Orientation="Both" VerticalOptions="EndAndExpand">
- <Grid x:Name="grid" Padding="10" ColumnSpacing="2" HeightRequest="120">
- <Grid.RowDefinitions>
- <RowDefinition Height="110" />
- <RowDefinition Height="110" />
- <RowDefinition Height="110" />
- <RowDefinition Height="110" />
- <RowDefinition Height="110" />
- <RowDefinition Height="110" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="70" />
- <ColumnDefinition Width="200" />
- <ColumnDefinition Width="200" />
- <ColumnDefinition Width="200" />
- <ColumnDefinition Width="200" />
- <ColumnDefinition Width="100" />
- <!--{Binding openReport}-->
- </Grid.ColumnDefinitions>
- <!--<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"/>-->
- <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="0">
- <Label Text="{Binding Item1}" VerticalOptions="Center" HorizontalOptions="Center"/>
- </Frame>
- <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="1">
- <Label Text="{Binding Item2}" VerticalOptions="Center" HorizontalOptions="Center"/>
- </Frame>
- <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="2">
- <Label Text="{Binding Item3}" VerticalOptions="Center" HorizontalOptions="Center"/>
- </Frame>
- <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="3">
- <Label Text="{Binding Item4}" VerticalOptions="Center" HorizontalOptions="Center"/>
- </Frame>
- <Frame BackgroundColor="GhostWhite" BorderColor="Black" Grid.Column="4">
- <Label Text="{Binding Item5}" VerticalOptions="Center" HorizontalOptions="Center"/>
- </Frame>
- <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"/>
- </Grid>
- </ScrollView>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <FlexLayout Margin="5">
- <Button x:Name="btnComplies" Text="Complies" BackgroundColor="Green" Margin="20,0,20,0" FontSize="12" FontAttributes="Bold" Clicked="btnComplies_Clicked"/>
- <Button x:Name="btnDComply" Text="Doesn't comply" BackgroundColor="Red" Margin="0,0,20,0" FontSize="12" FontAttributes="Bold" Clicked="btnDComply_Clicked"/>
- <Button x:Name="btnNA" Text="Not applicable" BackgroundColor="Yellow" FontSize="12" Margin="0,0,20,0" FontAttributes="Bold" Clicked="btnNA_Clicked"/>
- </FlexLayout>
- </StackLayout>
- </ContentPage.Content>
- </ContentPage>
Add Comment
Please, Sign In to add comment