<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="using:ControlExplorer"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" >

    <Style TargetType="local:PageBackgroundControl">
        <Setter Property="Background" Value="{ThemeResource ApplicationPageBackgroundThemeBrush}"/>
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:PageBackgroundControl">
                    <Grid Background="{TemplateBinding Background}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="local:PanelGridSplitter">
        <Setter Property="Background" Value="{StaticResource PhoneChromeBrush}" />
        <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}" />
        <!--<Setter Property="BorderBrush" Value="{StaticResource PhoneSubtleBrush}" />-->
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:PanelGridSplitter">
                    <Grid Background="Transparent">
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Border Grid.RowSpan="3" Margin="10,0"/>
                        <Border Background="{TemplateBinding BorderBrush}" BorderBrush="{TemplateBinding Foreground}" 
                                BorderThickness="1 0 1 1" Width="24" Opacity="0"/>
                        <Grid Grid.Row="1" Margin="15,0,-12,0" >
                            <Path Data="M8.5,0.5 L19.5,11.461843 L8.5,22.5 z" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Left" Margin="25,-6,0,-6" Stretch="Fill" UseLayoutRounding="False" Width="9" Height="20"/>
                            <Path Data="M11.5,0.5 L11.5,22.5 L0.5,11.461843 z" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Left" Margin="0,-6" Stretch="Fill" UseLayoutRounding="False" Width="9" Height="20"/>
                        </Grid>
                        <Border Grid.Row="2" 
                                Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding Foreground}"
                                BorderThickness="1 1 1 0" Width="24" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
