<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:ModernFlyouts.Controls">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/ModernFlyouts;component/Styles/ContentScrollViewer.xaml" />
    </ResourceDictionary.MergedDictionaries>
    
    <Style TargetType="controls:CrossFadeContentControl">
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="VerticalContentAlignment" Value="Top" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="controls:CrossFadeContentControl">
                    <Grid>
                        <ContentPresenter
                            x:Name="FirstContentPresenter"
                            Content="{x:Null}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                        <ContentPresenter
                            x:Name="SecondContentPresenter"
                            Content="{x:Null}"
                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="controls:ContentScrollViewer" BasedOn="{StaticResource SecondaryContentScrollViewerStyle}" />

</ResourceDictionary>
