Advertisement
Guest User

Untitled

a guest
Feb 12th, 2019
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.54 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage
  3.    xmlns="http://xamarin.com/schemas/2014/forms"
  4.    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5.    x:Class="Dizimos.Pages.Home.HomeDetail"
  6.    x:Name="this"
  7.    Title="Dízimos">
  8.     <ContentPage.ToolbarItems>
  9.         <ToolbarItem
  10.            Text="Adicionar"
  11.            Command="{Binding OpenAddIncomePopupCommand}"/>
  12.     </ContentPage.ToolbarItems>
  13.     <StackLayout Spacing="0">
  14.         <ListView
  15.            ItemsSource="{Binding Incomes}"
  16.            HasUnevenRows="True"
  17.            SelectionMode="None">
  18.             <ListView.ItemTemplate>
  19.                 <DataTemplate>
  20.                     <ViewCell>
  21.                         <StackLayout>
  22.                             <Grid
  23.                                RowSpacing="2"
  24.                                Padding="10">
  25.                                 <Grid.ColumnDefinitions>
  26.                                     <ColumnDefinition Width="*"/>
  27.                                     <ColumnDefinition Width="*"/>
  28.                                     <ColumnDefinition Width="Auto"/>
  29.                                 </Grid.ColumnDefinitions>
  30.                                 <Grid.RowDefinitions>
  31.                                     <RowDefinition Height="*"/>
  32.                                     <RowDefinition Height="*"/>
  33.                                 </Grid.RowDefinitions>
  34.                                 <Label
  35.                                    Text="{Binding Value_Display}"
  36.                                    FontSize="Large"
  37.                                    TextColor="#262626"
  38.                                    Grid.Column="0"
  39.                                    Grid.Row="0"/>
  40.                                 <Label
  41.                                    Text="{Binding Description_Display}"
  42.                                    FontSize="16"
  43.                                    Grid.Column="0"
  44.                                    Grid.Row="1"/>
  45.                                 <Label
  46.                                    Text="{Binding Tithes_Display}"
  47.                                    TextColor="#039be5"
  48.                                    HorizontalOptions="End"
  49.                                    Grid.Column="1"
  50.                                    Grid.Row="0"/>
  51.                                 <Label
  52.                                    Text="{Binding Date_Display}"
  53.                                    HorizontalOptions="End"
  54.                                    Grid.Column="1"
  55.                                    Grid.Row="1"/>
  56.                                 <ImageButton
  57.                                    Source="more_options"
  58.                                    Aspect="AspectFit"
  59.                                    HorizontalOptions="End"
  60.                                    WidthRequest="21"
  61.                                    HeightRequest="21"
  62.                                    BackgroundColor="Transparent"
  63.                                    Clicked="OnMoreOptionsTapped"
  64.                                    CommandParameter="{Binding .}"
  65.                                    Grid.Column="2"
  66.                                    Grid.Row="0"/>
  67.                             </Grid>
  68.                         </StackLayout>
  69.                     </ViewCell>
  70.                 </DataTemplate>
  71.             </ListView.ItemTemplate>
  72.         </ListView>
  73.         <StackLayout
  74.            HeightRequest="1"
  75.            BackgroundColor="Gray"/>
  76.         <StackLayout
  77.            Orientation="Horizontal"
  78.            HorizontalOptions="FillAndExpand"
  79.            Padding="10"
  80.            Spacing="0">
  81.             <StackLayout HorizontalOptions="StartAndExpand">
  82.                 <Label
  83.                    Text="Faturamento"
  84.                    HorizontalOptions="Center"/>
  85.                 <Label
  86.                    Text="{Binding TotalValue}"
  87.                    TextColor="#262626"
  88.                    FontSize="Medium"/>
  89.             </StackLayout>
  90.             <StackLayout HorizontalOptions="CenterAndExpand">
  91.                 <Button
  92.                    Text="Entregar"/>
  93.             </StackLayout>
  94.             <StackLayout HorizontalOptions="EndAndExpand">
  95.                 <Label
  96.                    Text="Dízimos"
  97.                    HorizontalOptions="Center"/>
  98.                 <Label
  99.                    Text="{Binding TotalTithes}"
  100.                    TextColor="#039be5"
  101.                    FontSize="Medium"/>
  102.             </StackLayout>
  103.         </StackLayout>
  104.     </StackLayout>
  105. </ContentPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement