<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="esoft_Mobile.MainPage">

    <StackLayout>

        <Label Text="E-SOFT - mobile alfa test" VerticalTextAlignment="Center" Margin="120, 10, 10, 10"></Label>
        <Grid Margin="15" >

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="110"/>
                <ColumnDefinition Width="160"/>
                <ColumnDefinition Width="100"/>
            </Grid.ColumnDefinitions>

            <Button Text="Добавить"
                    Grid.Column="0"
                    TextColor="White"
                    FontSize="12"
                    BorderColor="#04a0ff"
                    Background="#04a0ff"/>
            <Button Text="Редактировать" 
                    Grid.Column="1"
                    BorderWidth="2" 
                    TextColor="White" 
                    FontSize="12" />
            <Button  Text="Удалить" 
                     Grid.Column="2"
                     BorderWidth="2" 
                     TextColor="White" 
                     FontSize="12"
                     Background="#04a0ff"/>
        </Grid>

        
        <ListView x:Name="LviewTask" HasUnevenRows="True">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <StackLayout>
                            <Label Text="{Binding Title}" Margin="5" FontSize="25" HorizontalOptions="Start" />
                            <Label Text="{Binding Status}" Margin="10" FontSize="15" HorizontalOptions="Start"/>
                        </StackLayout>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>

    </StackLayout>

</ContentPage>
