<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
     xmlns="http://xamarin.com/schemas/2014/forms"
     xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
     xmlns:views="clr-namespace:Aurora.Design.Views.MainView"
     xmlns:navigation="clr-namespace:Aurora.Design.Components.NavigationMenu"
     xmlns:mp="clr-namespace:Aurora.Design.Components.MediaPlayer"
     xmlns:dialog="clr-namespace:Aurora.Design.Components.Dialogs"
     x:Class="Aurora.Design.Views.Main.MainView">
    <ContentPage.Resources>
        <StyleSheet
             Source="MainView.css"/>
    </ContentPage.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="60"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        
        <!--Header-->
        <StackLayout
            x:Name="Header"
            Grid.Row="0"
            Grid.ColumnSpan="2"
            Orientation="Horizontal">
            <Entry Text="Search"/>
        </StackLayout>

        <!--Title-->
        <StackLayout
            Grid.Row="1"
            Grid.ColumnSpan="2"
            x:Name="TitleContainer">
            <Label Text="{Binding Title}" TextColor="White"/>
        </StackLayout>

        <!--Sidebar-->
        <navigation:NavigationMenu
            Grid.Column="0"
            Grid.RowSpan="3"
            x:Name="MasterPage"
            Items="{Binding Pages}"
            SelectedItem="{Binding SelectedItem}"/>

        <!--Page Container-->
        <views:PageContainer
            Grid.Column="1"
            Grid.Row="2"
            x:Name="Content"/>

        <!--Modal Dialog-->
        <dialog:Modal x:Name="Modal"
            Grid.Column="1"
            Grid.Row="2"
            HorizontalOptions="Center"
            VerticalOptions="End"/>

        <!--Music Player-->
        <mp:Player
            x:Name="Player"
            Grid.Row="3"
            Grid.ColumnSpan="2"
            HeightRequest="60"/>
    </Grid>

</ContentPage>