<?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="FlexGrid101.ColumnDefinitions" x:Name="page"
             xmlns:xuni="clr-namespace:Xuni.Forms.FlexGrid;assembly=Xuni.Forms.FlexGrid"
             xmlns:local="clr-namespace:FlexGrid101;assembly=FlexGrid101.Xamarin">
  <Grid RowSpacing="0">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition />
    </Grid.RowDefinitions>
    <Label BindingContext="{x:Reference page}" Text="{Binding Title}" IsVisible="{StaticResource TitleVisible}" HorizontalOptions="Center" Font="Large"/>
    <xuni:FlexGrid x:Name="grid" AutoGenerateColumns="False" Grid.Row="1">
      <xuni:FlexGrid.Columns>
      	<xuni:GridColumn Binding="Active" Width="70"/>
        <xuni:GridColumn Binding="Id" IsReadOnly="true" Width="100"/>
        <xuni:GridColumn Binding="FirstName"/>
        <xuni:GridColumn Binding="LastName"/>
        <xuni:GridColumn Binding="OrderTotal" Format="C"/>
        <xuni:GridColumn Binding="CountryId" Header="Country"/>
        <local:GridDateTimeColumn Binding="LastOrderDate" Format="d" Mode="Date"/>
        <local:GridDateTimeColumn Binding="LastOrderDate" Format="t" Mode="Time" Header="Last Order Time"/>
      </xuni:FlexGrid.Columns>
    </xuni:FlexGrid>
  </Grid> 
</ContentPage>