<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:Views="clr-namespace:MasterDet.Views"
             x:Class="MasterDet.App">
    <Application.Resources>
        <ResourceDictionary>

            <ControlTemplate x:Key="BasePageTemplate">
                <AbsoluteLayout>
                    <!--Pages-->
                    <ContentPresenter 
                        HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
                        AbsoluteLayout.LayoutBounds=".5, .5, 1, 1"
                        AbsoluteLayout.LayoutFlags="All" />

                    <!--Loading-->
                    <Views:LoadingView
                        IsVisible="{TemplateBinding BindingContext.IsBusy}"
                        AbsoluteLayout.LayoutBounds=".5, .5, 1, 1"
                        AbsoluteLayout.LayoutFlags="All" />

                </AbsoluteLayout>
            </ControlTemplate>

            <!--Global Styles-->
            <Color x:Key="NavigationPrimary">#2196F3</Color>
            <Style TargetType="NavigationPage">
                <Setter Property="BarBackgroundColor" Value="{StaticResource NavigationPrimary}" />
                <Setter Property="BarTextColor" Value="White" />
            </Style>
        </ResourceDictionary>
    </Application.Resources>
</Application>