<?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="XamarinStudy.Views.ToyOrderPage">
    <ContentPage.Content>
        <StackLayout>
            <ListView x:Name="orderList" ItemsSource="{Binding .}" HasUnevenRows="True">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <StackLayout Orientation="Horizontal">
                                <Label Text="{Binding Name}" VerticalTextAlignment="Center" HorizontalOptions="StartAndExpand" FontSize="Large"/>
                                <Entry x:Name="countEntry" Text="{Binding Count}" Keyboard="Numeric" WidthRequest="150" HorizontalOptions="EndAndExpand" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
                            </StackLayout>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
            <Button x:Name="orderButton" Text="Order" FontSize="Large" Clicked="orderButton_Clicked"/>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>