<?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.StarSizing" x:Name="page"
             xmlns:xuni="clr-namespace:Xuni.Forms.FlexGrid;assembly=Xuni.Forms.FlexGrid">
  <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" AllowResizing="None" Grid.Row="1">
      <xuni:FlexGrid.Columns>
        <xuni:GridColumn Binding="FirstName" Width="*"/>
        <xuni:GridColumn Binding="LastName" Width="*"/>
        <xuni:GridColumn Binding="LastOrderDate" Width="*" Format="d"/>
        <xuni:GridColumn Binding="OrderTotal" Width="*" Format="N" HorizontalAlignment="End"/>
      </xuni:FlexGrid.Columns>
    </xuni:FlexGrid>
  </Grid>
</ContentPage>