<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_PreRace_Gantry"
      mc:Ignorable="d"
      DataContext="{Binding RelativeSource={RelativeSource Self}}"
      Width="1920"
      Height="540"
      Opacity="1"
      Background="#000">
    <Grid>
        <local:FZMediaElement UnloadedBehavior="Stop"
                              LoadedBehavior="Stop"
                              HorizontalAlignment="Stretch"
                              VerticalAlignment="Stretch"
                              x:Name="Video"
                              Opacity="1"
                              Source="game:\Media\UI\Videos\Gantry_Go.bk2"
                              local:FzMediaElementExtension.Loop="True" />
    </Grid>
    <FrameworkElement.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <local:RaiseFzEvent EventName="PlayVideo" />
        </EventTrigger>
    </FrameworkElement.Triggers>
    <local:EventFire.FzTriggers>
        <local:PlayVideoTrigger local:EventFireTrigger.Event="PlayVideo"
                                local:EventFireTrigger.TargetName="Video" />
    </local:EventFire.FzTriggers>
</Page>
