<Page xmlns:local="clr-namespace:ForzaUI"
      xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
      x:Class="ForzaUI.A_EmptySceneWithSpinner"
      mc:Ignorable="d"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Style="{StaticResource A_Style_Page_Generic}"
      >
    <Page.Resources>
        <ResourceDictionary>                                
            <Style x:Key="A_Style_LoadingMessageNarrated"
                TargetType="FrameworkElement">
                <Style.Resources>
                    <local:UIStoryboard x:Key="A_UIStoryboard_LoadingNarrator" RepeatBehavior="Forever" DurationOverride="0:0:8.0">
                        <Int32AnimationUsingKeyFrames Storyboard.TargetProperty="(local:ScreenReader.Event)">
                            <DiscreteInt32KeyFrame KeyTime="0:0:0.0" Value="{x:Static local:ScreenReaderEvent.None}" />
                            <DiscreteInt32KeyFrame KeyTime="0:0:0.5" Value="{x:Static local:ScreenReaderEvent.OnChange}" />
                            <DiscreteInt32KeyFrame KeyTime="0:0:7.5" Value="{x:Static local:ScreenReaderEvent.OnChange}" />
                            <DiscreteInt32KeyFrame KeyTime="0:0:8.0" Value="{x:Static local:ScreenReaderEvent.None}" />
                        </Int32AnimationUsingKeyFrames>
                    </local:UIStoryboard>
                </Style.Resources>                
                <Setter Property="local:ScreenReader.Line" Value="{Binding Message}" />
                <Setter Property="local:ScreenReader.Event" Value="None" />
                <Setter Property="local:ScreenReader.LineType" Value="ScreenTitle" />
                <Style.Triggers>
                    <EventTrigger RoutedEvent="FrameworkElement.Loaded">
                        <BeginStoryboard Storyboard="{StaticResource A_UIStoryboard_LoadingNarrator}" />
                    </EventTrigger>
                </Style.Triggers>
            </Style>

        </ResourceDictionary>
    </Page.Resources>

    <Grid x:Name="LoadingGrid" Style="{StaticResource A_Style_LoadingMessageNarrated}">
        <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetScreenShadow_ARUI}"/>
        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <ContentControl Style="{StaticResource A_Style_ContentControl_LoadingSpinnerWithMessage}"
                Content="{Binding Message}"/>
        </Grid>
    </Grid>
</Page>