<?xml version="1.0" encoding="UTF-8"?>
<Grid
     x:Name="self"
     xmlns="http://xamarin.com/schemas/2014/forms"
     xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
     x:Class="Aurora.Design.Components.DataGrid.DataGrid"
     Padding="0"
     RowSpacing="0">
    <Grid.RowDefinitions>
        <RowDefinition
             Height="Auto"/>
        <RowDefinition
             Height="*"/>
    </Grid.RowDefinitions>
    <Grid
         x:Name="_headerView"
         RowSpacing="0">
        <Grid.Resources>
            <ResourceDictionary>
                <!--Default Header Style-->
                <Style
                     x:Key="HeaderDefaultStyle"
                     TargetType="Label">
                    <Setter
                         Property="FontSize"
                         Value="{Binding HeaderFontSize, Source={x:Reference self}}"/>
                    <Setter
                         Property="FontAttributes"
                         Value="Bold"/>
                    <Setter
                         Property="HorizontalOptions"
                         Value="Center"/>
                    <Setter
                         Property="VerticalOptions"
                         Value="Center"/>
                    <Setter
                         Property="TextColor"
                         Value="{Binding HeaderTextColor,Source={x:Reference self}}"/>
                    <Setter
                         Property="LineBreakMode"
                         Value="WordWrap"/>
                </Style>
                <Style
                     TargetType="Grid">
                    <Setter
                         Property="BackgroundColor"
                         Value="{Binding HeaderBackground,Source={x:Reference self}}"/>
                </Style>
                <Style
                     x:Key="ImageStyleBase"
                     TargetType="Image">
                    <Setter
                         Property="Aspect"
                         Value="AspectFill"/>
                    <Setter
                         Property="VerticalOptions"
                         Value="Center"/>
                    <Setter
                         Property="HorizontalOptions"
                         Value="Center"/>
                    <Setter
                         Property="HeightRequest"
                         Value="5"/>
                    <Setter
                         Property="WidthRequest"
                         Value="9"/>
                    <Setter
                         Property="Margin"
                         Value="0,0,4,0"/>
                </Style>
                <Style
                     x:Key="AscendingIconStyle"
                     TargetType="Image"
                     BasedOn="{StaticResource ImageStyleBase}">
                    <Setter
                         Property="Source"
                         Value="{Binding AscendingIcon, Source={x:Reference self}}"/>
                </Style>
                <Style
                     x:Key="DescendingIconStyle"
                     TargetType="Image"
                     BasedOn="{StaticResource ImageStyleBase}">
                    <Setter
                         Property="Source"
                         Value="{Binding DescendingIcon, Source={x:Reference self}}"/>
                </Style>
            </ResourceDictionary>
        </Grid.Resources>
    </Grid>
    <ListView x:Name="DataList" Grid.Row="1" BackgroundColor="#222222" />
    <ContentView
         x:Name="_noDataView"
         Grid.RowSpan="2"
         IsVisible="False"/>
</Grid>